ea5d2ef8b6
* Adds conditional in route to not make discovery-chain request if service kind is equal to `connect-proxy` or `mesh-gateway` * Adds conditional in template to not show Routing tab if `chain` returns as null * Creates a new acceptance test to test the Routing tab not being displayed for a service proxy * Adds `tabs` to the services/show page object
38 lines
1 KiB
Gherkin
38 lines
1 KiB
Gherkin
@setupApplicationTest
|
|
Feature: dc / services / Show Routing for Serivce
|
|
Scenario: Given a service, the Routing tab should display
|
|
Given 1 datacenter model with the value "dc1"
|
|
And 1 node models
|
|
And 1 service model from yaml
|
|
---
|
|
- Service:
|
|
Kind: consul
|
|
Name: service-0
|
|
ID: service-0-with-id
|
|
---
|
|
When I visit the service page for yaml
|
|
---
|
|
dc: dc1
|
|
service: service-0
|
|
---
|
|
And the title should be "service-0 - Consul"
|
|
And I see routing on the tabs
|
|
Scenario: Given a service proxy, the Routing tab should not display
|
|
Given 1 datacenter model with the value "dc1"
|
|
And 1 node models
|
|
And 1 service model from yaml
|
|
---
|
|
- Service:
|
|
Kind: connect-proxy
|
|
Name: service-0-proxy
|
|
ID: service-0-proxy-with-id
|
|
---
|
|
When I visit the service page for yaml
|
|
---
|
|
dc: dc1
|
|
service: service-0-proxy
|
|
---
|
|
And the title should be "service-0-proxy - Consul"
|
|
And I don't see routing on the tabs
|
|
|