-
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 Dataplane Inbound cluster tab filter
Signed-off-by: John Cowen <[email protected]>
- Loading branch information
Showing
5 changed files
with
141 additions
and
66 deletions.
There are no files selected for viewing
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
54 changes: 54 additions & 0 deletions
54
packages/kuma-gui/features/mesh/dataplanes/overview/summary/Clusters.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,54 @@ | ||
Feature: mesh / dataplanes / connections / clusters | ||
Scenario: The inbound clusters tab correctly filters by 'localhost_<port>' | ||
Given the CSS selectors | ||
| Alias | Selector | | ||
| code | [data-testid='connection-inbound-summary-clusters-view'] [data-testid='k-code-block'] | | ||
And the URL "/meshes/mesh-name/dataplanes/service-64cbb7b8b5-6g94n.namespace/_overview" responds with | ||
""" | ||
body: | ||
dataplane: | ||
networking: | ||
inbound: | ||
- port: 9090 | ||
""" | ||
And the URL "/meshes/mesh-name/dataplanes/service-64cbb7b8b5-6g94n.namespace/clusters" responds with | ||
""" | ||
body: | | ||
localhost:9090::observability_name::localhost_9090 | ||
localhost:9090::default_priority::max_connections::1024 | ||
not_localhost:9090::priority::connections::1024 | ||
localhost:1111::default_priority::max_connections::1025 | ||
inbound:passthrough:ipv4::added_via_api::true | ||
""" | ||
When I visit the "/meshes/mesh-name/data-planes/service-64cbb7b8b5-6g94n.namespace/overview/inbound/localhost_9090/clusters" URL | ||
And the "$code" element contains "observability_name::localhost_9090" | ||
And the "$code" element contains "default_priority::max_connections::1024" | ||
And the "$code" element doesn't contain "priority::connections::1024" | ||
And the "$code" element doesn't contain "default_priority::max_connections::1025" | ||
And the "$code" element doesn't contain "added_via_api::true" | ||
|
||
Scenario: The outbound clusters tab correctly filters by '<clusterName>' | ||
Given the CSS selectors | ||
| Alias | Selector | | ||
| code | [data-testid='connection-outbound-summary-clusters-view'] [data-testid='k-code-block'] | | ||
And the URL "/meshes/mesh-name/dataplanes/service-64cbb7b8b5-6g94n.namespace/stats" responds with | ||
""" | ||
body: | | ||
cluster.mesh-name_service_namespace_default_msvc_9090.assignment_stale: 0 | ||
""" | ||
|
||
And the URL "/meshes/mesh-name/dataplanes/service-64cbb7b8b5-6g94n.namespace/clusters" responds with | ||
""" | ||
body: | | ||
mesh-name_service_namespace_default_msvc_9090::observability_name::mesh-name_service_namespace_default_msvc_9090 | ||
mesh-name_service_namespace_default_msvc_9090::default_priority::max_connections::1024 | ||
not_mesh-name_service_namespace_default_msvc_9090::priority::connections::1024 | ||
localhost:1111::default_priority::max_connections::1025 | ||
inbound:passthrough:ipv4::added_via_api::true | ||
""" | ||
When I visit the "/meshes/mesh-name/data-planes/service-64cbb7b8b5-6g94n.namespace/overview/outbound/mesh-name_service_namespace_default_msvc_9090/clusters" URL | ||
And the "$code" element contains "observability_name::mesh-name_service_namespace_default_msvc_9090" | ||
And the "$code" element contains "default_priority::max_connections::1024" | ||
And the "$code" element doesn't contain "priority::connections::1024" | ||
And the "$code" element doesn't contain "default_priority::max_connections::1025" | ||
And the "$code" element doesn't contain "added_via_api::true" |
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
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
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