2018-05-11 12:47:21 +00:00
|
|
|
@setupApplicationTest
|
2020-01-24 12:26:28 +00:00
|
|
|
Feature: dc / services / index: List Services
|
2020-05-05 16:29:51 +00:00
|
|
|
Scenario: Viewing the service list page with services
|
2018-05-11 12:47:21 +00:00
|
|
|
Given 1 datacenter model with the value "dc-1"
|
2020-04-21 14:21:52 +00:00
|
|
|
And 10 service models from yaml
|
2018-09-12 19:23:39 +00:00
|
|
|
---
|
2020-04-21 14:21:52 +00:00
|
|
|
- Name: Service-0
|
|
|
|
ExternalSources:
|
|
|
|
- consul
|
2020-05-05 16:29:51 +00:00
|
|
|
Kind: ~
|
2020-04-21 14:21:52 +00:00
|
|
|
- Name: Service-0-proxy
|
|
|
|
Kind: 'connect-proxy'
|
|
|
|
- Name: Service-1
|
|
|
|
ExternalSources:
|
|
|
|
- nomad
|
2020-05-05 16:29:51 +00:00
|
|
|
Kind: ~
|
2020-04-21 14:21:52 +00:00
|
|
|
- Name: Service-1-proxy
|
|
|
|
Kind: 'connect-proxy'
|
|
|
|
- Name: Service-2
|
|
|
|
ExternalSources:
|
|
|
|
- terraform
|
2020-05-05 16:29:51 +00:00
|
|
|
Kind: ~
|
2020-04-21 14:21:52 +00:00
|
|
|
- Name: Service-2-proxy
|
|
|
|
Kind: 'connect-proxy'
|
|
|
|
- Name: Service-3
|
|
|
|
ExternalSources:
|
|
|
|
- kubernetes
|
2020-05-05 16:29:51 +00:00
|
|
|
Kind: ~
|
2020-04-21 14:21:52 +00:00
|
|
|
- Name: Service-3-proxy
|
|
|
|
Kind: 'connect-proxy'
|
|
|
|
- Name: Service-4
|
|
|
|
ExternalSources:
|
|
|
|
- aws
|
2020-05-05 16:29:51 +00:00
|
|
|
Kind: ~
|
2020-04-21 14:21:52 +00:00
|
|
|
- Name: Service-4-proxy
|
|
|
|
Kind: 'connect-proxy'
|
2018-09-12 19:23:39 +00:00
|
|
|
---
|
2020-04-21 14:21:52 +00:00
|
|
|
|
2018-05-11 12:47:21 +00:00
|
|
|
When I visit the services page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/services
|
2020-01-28 14:25:52 +00:00
|
|
|
And the title should be "Services - Consul"
|
2020-04-21 14:21:52 +00:00
|
|
|
Then I see 5 service models
|
2018-09-12 19:23:39 +00:00
|
|
|
And I see externalSource on the services like yaml
|
|
|
|
---
|
|
|
|
- consul
|
|
|
|
- nomad
|
|
|
|
- terraform
|
|
|
|
- kubernetes
|
2020-04-14 20:07:09 +00:00
|
|
|
- aws
|
2018-09-12 19:23:39 +00:00
|
|
|
---
|
2020-05-05 16:29:51 +00:00
|
|
|
Scenario: Viewing the service list page with gateways
|
|
|
|
Given 1 datacenter model with the value "dc-1"
|
|
|
|
And 3 service models from yaml
|
|
|
|
---
|
|
|
|
- Name: Service-0-proxy
|
|
|
|
Kind: 'connect-proxy'
|
|
|
|
- Name: Service-1-ingress-gateway
|
|
|
|
Kind: 'ingress-gateway'
|
|
|
|
- Name: Service-2-terminating-gateway
|
|
|
|
Kind: 'terminating-gateway'
|
|
|
|
---
|
|
|
|
|
|
|
|
When I visit the services page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/services
|
|
|
|
And the title should be "Services - Consul"
|
|
|
|
Then I see 2 service models
|
|
|
|
And I see kind on the services like yaml
|
|
|
|
---
|
|
|
|
- ingress-gateway
|
|
|
|
- terminating-gateway
|
|
|
|
---
|
2020-05-12 15:37:22 +00:00
|
|
|
Scenario: View a Service with a proxy
|
|
|
|
Given 1 datacenter model with the value "dc-1"
|
|
|
|
And 3 service models from yaml
|
|
|
|
---
|
|
|
|
- Name: Service-0
|
|
|
|
Kind: ~
|
|
|
|
- Name: Service-0-proxy
|
|
|
|
Kind: connect-proxy
|
|
|
|
ProxyFor: ['Service-0']
|
|
|
|
- Name: Service-1
|
|
|
|
Kind: ~
|
|
|
|
---
|
2020-05-05 16:29:51 +00:00
|
|
|
|
2020-05-12 15:37:22 +00:00
|
|
|
When I visit the services page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/services
|
|
|
|
And the title should be "Services - Consul"
|
|
|
|
Then I see 2 service models
|
|
|
|
And I see proxy on the services.0
|
|
|
|
And I don't see proxy on the services.1
|