mirror of https://github.com/status-im/consul.git
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
This commit is contained in:
parent
028875a732
commit
5bb38f6ab5
|
@ -2,29 +2,31 @@
|
|||
Feature: dc / services: List Services
|
||||
Scenario:
|
||||
Given 1 datacenter model with the value "dc-1"
|
||||
And 5 service models from yaml
|
||||
And 6 service models from yaml
|
||||
---
|
||||
- Name: Service 1
|
||||
Meta:
|
||||
external-source: consul
|
||||
ExternalSources:
|
||||
- consul
|
||||
- Name: Service 2
|
||||
Meta:
|
||||
external-source: nomad
|
||||
ExternalSources:
|
||||
- nomad
|
||||
- Name: Service 3
|
||||
Meta:
|
||||
external-source: terraform
|
||||
ExternalSources:
|
||||
- terraform
|
||||
- Name: Service 4
|
||||
Meta:
|
||||
external-source: kubernetes
|
||||
ExternalSources:
|
||||
- kubernetes
|
||||
- Name: Service 5
|
||||
Meta: ~
|
||||
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 5 service models
|
||||
Then I see 6 service models
|
||||
And I see externalSource on the services like yaml
|
||||
---
|
||||
- consul
|
||||
|
@ -32,5 +34,6 @@ Feature: dc / services: List Services
|
|||
- terraform
|
||||
- kubernetes
|
||||
- ~
|
||||
- ~
|
||||
---
|
||||
|
||||
|
|
Loading…
Reference in New Issue