consul/ui/packages/consul-ui/tests/acceptance/dc/services/instances/exposed-paths.feature

43 lines
1.3 KiB
Gherkin

@setupApplicationTest
Feature: dc / services / instances / Exposed Paths
Background:
Given 1 datacenter model with the value "dc1"
Scenario: A Service instance without a Proxy does not display Exposed Paths tab
Given 1 proxy model from yaml
---
- ServiceProxy:
DestinationServiceName: service-1
DestinationServiceID: ~
---
When I visit the instance page for yaml
---
dc: dc1
service: service-0
node: node-0
id: service-0-with-id
---
Then the url should be /dc1/services/service-0/instances/node-0/service-0-with-id/health-checks
And I don't see exposedPaths on the tabs
Scenario: A Service instance with a Proxy displays Exposed Paths tab
Given 1 proxy model from yaml
---
- ServiceProxy:
DestinationServiceName: service-0
DestinationServiceID: ~
---
When I visit the instance page for yaml
---
dc: dc1
service: service-0
node: node-0
id: service-0-with-id
---
Then the url should be /dc1/services/service-0/instances/node-0/service-0-with-id/health-checks
And I see exposedPathsIsVisible on the tabs
When I click exposedPaths on the tabs
Then the url should be /dc1/services/service-0/instances/node-0/service-0-with-id/exposed-paths
And I see exposedPathsIsSelected on the tabs