-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dataplanes): ignore service-less inbounds in the overview (#2422)
Also added a test for not showing any inbounds for delegated gateways whilst I was there as it was the same sort of test/feature. Signed-off-by: John Cowen <john.cowen@konghq.com>
- Loading branch information
Showing
2 changed files
with
44 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Feature: mesh / dataplanes / connections / Inbounds | ||
Background: | ||
Given the CSS selectors | ||
| Alias | Selector | | ||
| detail-view | [data-testid='data-plane-detail-tabs-view'] | | ||
| traffic | [data-testid='dataplane-traffic'] | | ||
| inbound | [data-testid='dataplane-inbound'] | | ||
| outbound | [data-testid='dataplane-outbound'] | | ||
|
||
Scenario: An inbound with port 49151 isn't shown | ||
Given the environment | ||
""" | ||
KUMA_DATAPLANEINBOUND_COUNT: 1 | ||
KUMA_DATAPLANE_TYPE: standard | ||
""" | ||
And the URL "/meshes/default/dataplanes/service-less/_overview" responds with | ||
""" | ||
body: | ||
dataplane: | ||
networking: | ||
inbound: | ||
- port: 49151 | ||
""" | ||
When I visit the "/meshes/default/data-planes/service-less/overview" URL | ||
|
||
And the "$detail-view" element contains "service-less" | ||
And the "$traffic" element exists | ||
And the "$inbound" element exists 0 times | ||
|
||
Scenario: Delegated gateways show no inbounds | ||
Given the environment | ||
""" | ||
KUMA_DATAPLANE_TYPE: delegated | ||
""" | ||
When I visit the "/meshes/default/data-planes/delegated/overview" URL | ||
|
||
And the "$detail-view" element contains "delegated" | ||
And the "$traffic" element exists | ||
And the "$inbound" element exists 0 times | ||
|
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