-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dataplanes): correct MeshService regexp based matching (#3240)
Sometimes clusterNames can have hashes after the port. This means some of our clusterName matching is a little too strict. This PR remove the "end of line" match from our `_msvc_` regexp matching to make sure we also match services with hashes after the port. Closes #3238 --------- Signed-off-by: John Cowen <[email protected]> Signed-off-by: John Cowen <[email protected]> Co-authored-by: Charly Molter <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
packages/kuma-gui/features/mesh/dataplanes/overview/ClusterNames.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Feature: mesh / dataplanes / connections / clusterNames | ||
Scenario: MeshServices type clusterNames with hashes are matched correctly | ||
Given the CSS selectors | ||
| Alias | Selector | | ||
| outbound | [data-testid='dataplane-outbound'] | | ||
And the URL "/meshes/mesh-name/dataplanes/edge-gateway-546b7bbbc9-mkhx6.kuma-demo/stats" responds with | ||
""" | ||
body: | | ||
cluster.default_demo-app_kuma-demo_default_msvc_5000-5d788f7a87b92639.upstream_rq_tx_reset: 0 | ||
""" | ||
When I visit the "/meshes/mesh-name/data-planes/edge-gateway-546b7bbbc9-mkhx6.kuma-demo/overview?inactive" URL | ||
And the "$outbound" element contains "default_demo-app_kuma-demo_default_msvc_5000-5d788f7a87b92639" | ||
|
||
Scenario: MeshServices type clusterNames without hashes are matched correctly | ||
Given the CSS selectors | ||
| Alias | Selector | | ||
| outbound | [data-testid='dataplane-outbound'] | | ||
And the URL "/meshes/mesh-name/dataplanes/edge-gateway-546b7bbbc9-mkhx6.kuma-demo/stats" responds with | ||
""" | ||
body: | | ||
cluster.default_demo-app_kuma-demo_default_msvc_5000.upstream_rq_tx_reset: 0 | ||
""" | ||
When I visit the "/meshes/mesh-name/data-planes/edge-gateway-546b7bbbc9-mkhx6.kuma-demo/overview?inactive" URL | ||
And the "$outbound" element contains "default_demo-app_kuma-demo_default_msvc_5000" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters