mirror of
https://github.com/status-im/consul.git
synced 2025-01-18 17:52:17 +00:00
6589cbbd0d
* ui: Add the most basic workspace root in /ui * We already have a LICENSE file in the repository root * Change directory path in build scripts ui-v2 -> ui * Make yarn install flags configurable from elsewhere * Minimal workspace root makefile * Call the new docker specific target * Update yarn in the docker build image * Reconfigure the netlify target and move to the higher makefile * Move ui-v2 -> ui/packages/consul-ui * Change repo root to refleect new folder structure * Temporarily don't hoist consul-api-double * Fixup CI configuration * Fixup lint errors * Fixup Netlify target
61 lines
1.6 KiB
Gherkin
61 lines
1.6 KiB
Gherkin
@setupApplicationTest
|
|
Feature: dc / services / show-routing: Show Routing for Service
|
|
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:
|
|
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 connect is disabled, the Routing tab should not display or error
|
|
Given 2 datacenter models from yaml
|
|
---
|
|
- dc1
|
|
- dc2
|
|
---
|
|
And 1 node models
|
|
And 2 service model from yaml
|
|
---
|
|
- Service:
|
|
Name: service-0
|
|
ID: service-0-with-id
|
|
- Service:
|
|
Name: service-1
|
|
ID: service-1-with-id
|
|
---
|
|
And the url "/v1/discovery-chain/service-0?dc=dc1&ns=@namespace" responds with from yaml
|
|
---
|
|
status: 500
|
|
body: "Connect must be enabled in order to use this endpoint"
|
|
---
|
|
When I visit the service page for yaml
|
|
---
|
|
dc: dc1
|
|
service: service-0
|
|
---
|
|
And I don't see routing on the tabs
|
|
And I don't see the "[data-test-error]" element
|
|
And I visit the service page for yaml
|
|
---
|
|
dc: dc2
|
|
service: service-1
|
|
---
|
|
And I see routing on the tabs
|
|
And I visit the service page for yaml
|
|
---
|
|
dc: dc1
|
|
service: service-0
|
|
---
|
|
Then a GET request wasn't made to "/v1/discovery-chain/service-0?dc=dc1&ns=@namespace"
|
|
And I don't see routing on the tabs
|
|
And I don't see the "[data-test-error]" element
|