2019-03-07 10:51:39 +00:00
|
|
|
@setupApplicationTest
|
|
|
|
Feature: dc / services / instances / show: Show Service Instance
|
2019-03-22 17:24:40 +00:00
|
|
|
Background:
|
2019-03-07 10:51:39 +00:00
|
|
|
Given 1 datacenter model with the value "dc1"
|
2019-06-20 08:37:17 +00:00
|
|
|
And 2 instance models from yaml
|
2019-03-07 10:51:39 +00:00
|
|
|
---
|
2019-06-11 09:18:50 +00:00
|
|
|
- Service:
|
|
|
|
ID: service-0-with-id
|
|
|
|
Meta:
|
|
|
|
external-source: consul
|
|
|
|
Node:
|
|
|
|
Node: node-0
|
2019-03-07 10:51:39 +00:00
|
|
|
- Service:
|
|
|
|
ID: service-0-with-id
|
|
|
|
Tags: ['Tag1', 'Tag2']
|
|
|
|
Meta:
|
|
|
|
external-source: nomad
|
2019-06-11 09:18:50 +00:00
|
|
|
Node:
|
2019-06-20 08:37:17 +00:00
|
|
|
Node: another-node
|
2019-03-07 10:51:39 +00:00
|
|
|
Checks:
|
|
|
|
- Name: Service check
|
|
|
|
ServiceID: service-0
|
|
|
|
Output: Output of check
|
|
|
|
Status: passing
|
|
|
|
- Name: Service check
|
|
|
|
ServiceID: service-0
|
|
|
|
Output: Output of check
|
|
|
|
Status: warning
|
|
|
|
- Name: Service check
|
|
|
|
ServiceID: service-0
|
|
|
|
Output: Output of check
|
|
|
|
Status: critical
|
|
|
|
- Name: Node check
|
|
|
|
ServiceID: ""
|
|
|
|
Output: Output of check
|
|
|
|
Status: passing
|
|
|
|
- Name: Node check
|
|
|
|
ServiceID: ""
|
|
|
|
Output: Output of check
|
|
|
|
Status: warning
|
|
|
|
- Name: Node check
|
|
|
|
ServiceID: ""
|
|
|
|
Output: Output of check
|
|
|
|
Status: critical
|
|
|
|
---
|
|
|
|
And 1 proxy model from yaml
|
|
|
|
---
|
|
|
|
- ServiceProxy:
|
|
|
|
DestinationServiceName: service-1
|
|
|
|
DestinationServiceID: ~
|
|
|
|
---
|
2019-03-22 17:24:40 +00:00
|
|
|
Scenario: A Service instance has no Proxy
|
2019-03-07 10:51:39 +00:00
|
|
|
When I visit the instance page for yaml
|
|
|
|
---
|
|
|
|
dc: dc1
|
|
|
|
service: service-0
|
2019-06-20 08:37:17 +00:00
|
|
|
node: another-node
|
2019-03-07 10:51:39 +00:00
|
|
|
id: service-0-with-id
|
|
|
|
---
|
2019-06-20 08:37:17 +00:00
|
|
|
Then the url should be /dc1/services/service-0/another-node/service-0-with-id
|
2019-03-07 10:51:39 +00:00
|
|
|
Then I don't see type on the proxy
|
|
|
|
Then I see externalSource like "nomad"
|
|
|
|
|
|
|
|
And I don't see upstreams on the tabs
|
|
|
|
And I see serviceChecksIsSelected on the tabs
|
|
|
|
And I see 3 of the serviceChecks object
|
|
|
|
|
|
|
|
When I click nodeChecks on the tabs
|
|
|
|
And I see nodeChecksIsSelected on the tabs
|
|
|
|
And I see 3 of the nodeChecks object
|
|
|
|
|
|
|
|
When I click tags on the tabs
|
|
|
|
And I see tagsIsSelected on the tabs
|
|
|
|
|
|
|
|
Then I see the text "Tag1" in "[data-test-tags] span:nth-child(1)"
|
|
|
|
Then I see the text "Tag2" in "[data-test-tags] span:nth-child(2)"
|
2019-08-02 11:53:52 +00:00
|
|
|
|
|
|
|
When I click metaData on the tabs
|
|
|
|
And I see metaDataIsSelected on the tabs
|
|
|
|
And I see 1 of the metaData object
|
|
|
|
|
2019-03-22 17:24:40 +00:00
|
|
|
Scenario: A Service instance warns when deregistered whilst blocking
|
|
|
|
Given settings from yaml
|
|
|
|
---
|
|
|
|
consul:client:
|
|
|
|
blocking: 1
|
|
|
|
throttle: 200
|
|
|
|
---
|
|
|
|
And a network latency of 100
|
|
|
|
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-22 17:24:40 +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-22 17:24:40 +00:00
|
|
|
And an external edit results in 0 instance models
|
|
|
|
And pause until I see the text "deregistered" in "[data-notification]"
|
2019-04-17 08:21:54 +00:00
|
|
|
@ignore
|
|
|
|
Scenario: A Service Instance's proxy blocking query is closed when the instance is deregistered
|
|
|
|
Then ok
|
2019-03-07 10:51:39 +00:00
|
|
|
|