consul/ui-v2/tests/acceptance/dc/services/dc-switch.feature

42 lines
1.1 KiB
Gherkin
Raw Normal View History

@setupApplicationTest
Feature: dc / services / dc-switch : Switching Datacenters
Scenario: Seeing all services when switching datacenters
Given 2 datacenter models from yaml
---
- dc-1
- dc-2
---
And 6 service models from yaml
---
- Name: Service-0
Kind: consul
- Name: Service-1
Kind: consul
- Name: Service-2
Kind: consul
- Name: Service-3
Kind: consul
- Name: Service-4
Kind: consul
- Name: Service-5
Kind: consul
---
When I visit the services page for yaml
---
dc: dc-1
---
Then the url should be /dc-1/services
Then I see 6 service models
When I click dc on the navigation
And I click dcs.1.name
Then the url should be /dc-2/services
Then I see 6 service models
When I click dc on the navigation
And I click dcs.0.name
Then the url should be /dc-1/services
Then I see 6 service models
When I click dc on the navigation
And I click dcs.1.name
Then the url should be /dc-2/services
Then I see 6 service models