open-consul/ui-v2/tests/acceptance/dc/services/index.feature
John Cowen ca2d993d64
ui: Tests Bugfix. Reflect extra json property ExternalSources in mocks (#4662)
The mocks where using randomly generated `ExternalSources` this change
makes sure they are fixed so we can reliably test the values. No change
to actual UI code
2018-09-13 09:09:59 +01:00

40 lines
818 B
Gherkin

@setupApplicationTest
Feature: dc / services: List Services
Scenario:
Given 1 datacenter model with the value "dc-1"
And 6 service models from yaml
---
- Name: Service 1
ExternalSources:
- consul
- Name: Service 2
ExternalSources:
- nomad
- Name: Service 3
ExternalSources:
- terraform
- Name: Service 4
ExternalSources:
- kubernetes
- Name: Service 5
ExternalSources: []
- Name: Service 6
ExternalSources: ~
---
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
And I see externalSource on the services like yaml
---
- consul
- nomad
- terraform
- kubernetes
- ~
- ~
---