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-11-19 16:05:46 +00:00
|
|
|
ChecksPassing: 0
|
|
|
|
ChecksWarning: 0
|
|
|
|
ChecksCritical: 10
|
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-11-19 16:05:46 +00:00
|
|
|
ChecksPassing: 0
|
|
|
|
ChecksWarning: 0
|
|
|
|
ChecksCritical: 9
|
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-11-19 16:05:46 +00:00
|
|
|
ChecksPassing: 0
|
|
|
|
ChecksWarning: 0
|
|
|
|
ChecksCritical: 8
|
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-11-19 16:05:46 +00:00
|
|
|
ChecksPassing: 0
|
|
|
|
ChecksWarning: 0
|
|
|
|
ChecksCritical: 7
|
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-11-19 16:05:46 +00:00
|
|
|
ChecksPassing: 0
|
|
|
|
ChecksWarning: 0
|
|
|
|
ChecksCritical: 6
|
2020-05-05 16:29:51 +00:00
|
|
|
Kind: ~
|
2020-04-21 14:21:52 +00:00
|
|
|
- Name: Service-4-proxy
|
|
|
|
Kind: 'connect-proxy'
|
2020-11-19 16:05:46 +00:00
|
|
|
ChecksPassing: 0
|
|
|
|
ChecksWarning: 0
|
|
|
|
ChecksCritical: 5
|
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'
|
2020-11-19 16:05:46 +00:00
|
|
|
ChecksPassing: 0
|
|
|
|
ChecksWarning: 0
|
|
|
|
ChecksCritical: 3
|
2020-05-05 16:29:51 +00:00
|
|
|
- Name: Service-1-ingress-gateway
|
|
|
|
Kind: 'ingress-gateway'
|
2020-11-19 16:05:46 +00:00
|
|
|
ChecksPassing: 0
|
|
|
|
ChecksWarning: 0
|
|
|
|
ChecksCritical: 2
|
2020-05-05 16:29:51 +00:00
|
|
|
- Name: Service-2-terminating-gateway
|
|
|
|
Kind: 'terminating-gateway'
|
2020-11-19 16:05:46 +00:00
|
|
|
ChecksPassing: 0
|
|
|
|
ChecksWarning: 0
|
|
|
|
ChecksCritical: 1
|
2020-05-05 16:29:51 +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 kind on the services like yaml
|
|
|
|
---
|
|
|
|
- ingress-gateway
|
|
|
|
- terminating-gateway
|
|
|
|
---
|
2020-09-30 13:13:38 +00:00
|
|
|
Scenario: View a Service in mesh
|
2020-05-12 15:37:22 +00:00
|
|
|
Given 1 datacenter model with the value "dc-1"
|
|
|
|
And 3 service models from yaml
|
|
|
|
---
|
|
|
|
- Name: Service-0
|
|
|
|
Kind: ~
|
2020-09-30 13:13:38 +00:00
|
|
|
ConnectedWithProxy: true
|
|
|
|
ConnectedWithGateway: true
|
2020-11-19 16:05:46 +00:00
|
|
|
ChecksPassing: 0
|
|
|
|
ChecksWarning: 0
|
|
|
|
ChecksCritical: 2
|
2020-05-12 15:37:22 +00:00
|
|
|
- Name: Service-0-proxy
|
|
|
|
Kind: connect-proxy
|
|
|
|
- Name: Service-1
|
|
|
|
Kind: ~
|
2020-09-30 13:13:38 +00:00
|
|
|
ConnectedWithProxy: false
|
|
|
|
ConnectedWithGateway: false
|
2020-11-19 16:05:46 +00:00
|
|
|
ChecksPassing: 0
|
|
|
|
ChecksWarning: 0
|
|
|
|
ChecksCritical: 1
|
2020-05-12 15:37:22 +00:00
|
|
|
---
|
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
|
2020-09-30 13:13:38 +00:00
|
|
|
And I see mesh on the services.0
|
|
|
|
And I don't see mesh on the services.1
|
|
|
|
Scenario: View a Service's Associated Service count
|
|
|
|
Given 1 datacenter model with the value "dc-1"
|
|
|
|
And 3 service models from yaml
|
|
|
|
---
|
|
|
|
- Name: Service-0
|
|
|
|
Kind: ~
|
2020-11-19 16:05:46 +00:00
|
|
|
ChecksPassing: 0
|
|
|
|
ChecksWarning: 0
|
|
|
|
ChecksCritical: 2
|
2020-09-30 13:13:38 +00:00
|
|
|
- Name: Service-0-proxy
|
|
|
|
Kind: connect-proxy
|
2020-11-19 16:05:46 +00:00
|
|
|
ChecksPassing: 0
|
|
|
|
ChecksWarning: 0
|
|
|
|
ChecksCritical: 1
|
2020-09-30 13:13:38 +00:00
|
|
|
- Name: Service-1
|
|
|
|
Kind: 'ingress-gateway'
|
2020-11-19 16:05:46 +00:00
|
|
|
ChecksPassing: 0
|
|
|
|
ChecksWarning: 0
|
|
|
|
ChecksCritical: 1
|
2020-09-30 13:13:38 +00:00
|
|
|
GatewayConfig:
|
2020-12-15 18:29:32 +00:00
|
|
|
AssociatedServiceCount: 345
|
2020-09-30 13:13:38 +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 don't see associatedServiceCount on the services.0
|
|
|
|
And I see associatedServiceCount on the services.1
|