2019-03-07 10:51:39 +00:00
|
|
|
@setupApplicationTest
|
|
|
|
Feature: dc / services / instances / with-sidecar: Show Service Instance with a Sidecar Proxy
|
|
|
|
Scenario: A Service instance has a Sidecar Proxy (a DestinationServiceID)
|
|
|
|
Given 1 datacenter model with the value "dc1"
|
|
|
|
And 1 proxy model from yaml
|
|
|
|
---
|
2019-06-20 08:37:17 +00:00
|
|
|
- Node: node-0
|
|
|
|
ServiceProxy:
|
|
|
|
DestinationServiceID: service-0-with-id
|
|
|
|
DestinationServiceName: ~
|
2019-03-07 10:51:39 +00:00
|
|
|
---
|
|
|
|
When I visit the instance page for yaml
|
|
|
|
---
|
|
|
|
dc: dc1
|
|
|
|
service: service-0
|
2019-06-11 09:18:50 +00:00
|
|
|
node: node-0
|
2019-03-07 10:51:39 +00:00
|
|
|
id: service-0-with-id
|
|
|
|
---
|
2019-06-11 09:18:50 +00:00
|
|
|
Then the url should be /dc1/services/service-0/node-0/service-0-with-id
|
2019-03-07 10:51:39 +00:00
|
|
|
And I see type on the proxy like "sidecar-proxy"
|
|
|
|
And I see serviceChecksIsSelected on the tabs
|
|
|
|
And I don't see upstreams on the tabs
|
2019-06-20 08:37:17 +00:00
|
|
|
Scenario: A Service instance has no Sidecar Proxy (a DestinationServiceID) on the same node
|
|
|
|
Given 1 datacenter model with the value "dc1"
|
|
|
|
And 1 proxy model from yaml
|
|
|
|
---
|
|
|
|
- Node: node-1
|
|
|
|
ServiceProxy:
|
|
|
|
DestinationServiceID: service-0-with-id
|
|
|
|
DestinationServiceName: ~
|
|
|
|
---
|
|
|
|
When I visit the instance page for yaml
|
|
|
|
---
|
|
|
|
dc: dc1
|
|
|
|
service: service-0
|
|
|
|
node: node-0
|
|
|
|
id: service-0-with-id
|
|
|
|
---
|
|
|
|
Then the url should be /dc1/services/service-0/node-0/service-0-with-id
|
|
|
|
Then I don't see type on the proxy
|
2019-03-07 10:51:39 +00:00
|
|
|
|
|
|
|
|