2018-05-11 12:47:21 +00:00
|
|
|
@setupApplicationTest
|
2018-09-12 19:23:39 +00:00
|
|
|
Feature: dc / nodes / show: Show node
|
2019-03-22 17:24:40 +00:00
|
|
|
Background:
|
2018-05-11 12:47:21 +00:00
|
|
|
Given 1 datacenter model with the value "dc1"
|
2021-05-13 10:36:51 +00:00
|
|
|
# 2 nodes are required for the RTT tab to be visible
|
2019-03-22 17:24:40 +00:00
|
|
|
Scenario: Given 2 nodes all the tabs are visible and clickable
|
2021-05-13 10:36:51 +00:00
|
|
|
Given 2 node models
|
2018-05-11 12:47:21 +00:00
|
|
|
When I visit the node page for yaml
|
|
|
|
---
|
|
|
|
dc: dc1
|
|
|
|
node: node-0
|
|
|
|
---
|
|
|
|
And I see healthChecksIsSelected on the tabs
|
|
|
|
|
2020-07-01 14:27:29 +00:00
|
|
|
When I click serviceInstances on the tabs
|
|
|
|
And I see serviceInstancesIsSelected on the tabs
|
2018-05-11 12:47:21 +00:00
|
|
|
|
|
|
|
When I click roundTripTime on the tabs
|
|
|
|
And I see roundTripTimeIsSelected on the tabs
|
|
|
|
|
|
|
|
When I click lockSessions on the tabs
|
|
|
|
And I see lockSessionsIsSelected on the tabs
|
2019-08-02 11:53:52 +00:00
|
|
|
|
2020-05-04 18:06:25 +00:00
|
|
|
When I click metadata on the tabs
|
|
|
|
And I see metadataIsSelected on the tabs
|
2018-05-11 12:47:21 +00:00
|
|
|
Scenario: Given 1 node all the tabs are visible and clickable and the RTT one isn't there
|
2019-03-22 17:24:40 +00:00
|
|
|
Given 1 node models from yaml
|
2018-05-11 12:47:21 +00:00
|
|
|
---
|
2018-09-12 19:23:39 +00:00
|
|
|
ID: node-0
|
2018-05-11 12:47:21 +00:00
|
|
|
---
|
|
|
|
When I visit the node page for yaml
|
|
|
|
---
|
|
|
|
dc: dc1
|
|
|
|
node: node-0
|
|
|
|
---
|
|
|
|
And I see healthChecksIsSelected on the tabs
|
|
|
|
|
2020-07-01 14:27:29 +00:00
|
|
|
When I click serviceInstances on the tabs
|
|
|
|
And I see serviceInstancesIsSelected on the tabs
|
2018-05-11 12:47:21 +00:00
|
|
|
|
|
|
|
And I don't see roundTripTime on the tabs
|
|
|
|
|
|
|
|
When I click lockSessions on the tabs
|
|
|
|
And I see lockSessionsIsSelected on the tabs
|
2020-07-01 14:27:29 +00:00
|
|
|
Scenario: Given 1 node with no checks all the tabs are visible but the serviceInstances tab is selected
|
2019-03-22 17:24:40 +00:00
|
|
|
Given 1 node models from yaml
|
2018-09-12 19:23:39 +00:00
|
|
|
---
|
|
|
|
ID: node-0
|
|
|
|
Checks: []
|
|
|
|
---
|
|
|
|
When I visit the node page for yaml
|
|
|
|
---
|
|
|
|
dc: dc1
|
|
|
|
node: node-0
|
|
|
|
---
|
2022-09-07 13:24:02 +00:00
|
|
|
And I see serviceInstancesIsSelected on the tabs
|
2022-09-08 10:46:49 +00:00
|
|
|
And I see healthChecksIsVisible on the tabs
|
|
|
|
And I see serviceInstancesIsVisible on the tabs
|
2020-05-12 15:37:22 +00:00
|
|
|
And I don't see roundTripTime on the tabs
|
2022-09-08 10:46:49 +00:00
|
|
|
And I see lockSessionsIsVisible on the tabs
|
2019-03-22 17:24:40 +00:00
|
|
|
Scenario: A node warns when deregistered whilst blocking
|
|
|
|
Given 1 node model from yaml
|
|
|
|
---
|
|
|
|
ID: node-0
|
|
|
|
---
|
|
|
|
And settings from yaml
|
|
|
|
---
|
|
|
|
consul:client:
|
|
|
|
blocking: 1
|
|
|
|
throttle: 200
|
|
|
|
---
|
|
|
|
And a network latency of 100
|
|
|
|
When I visit the node page for yaml
|
|
|
|
---
|
|
|
|
dc: dc1
|
|
|
|
node: node-0
|
|
|
|
---
|
2020-04-08 09:56:36 +00:00
|
|
|
Then the url should be /dc1/nodes/node-0/health-checks
|
2020-01-28 14:25:52 +00:00
|
|
|
And the title should be "node-0 - Consul"
|
2019-03-22 17:24:40 +00:00
|
|
|
And the url "/v1/internal/ui/node/node-0" responds with a 404 status
|
|
|
|
And pause until I see the text "no longer exists" in "[data-notification]"
|
2019-04-17 08:21:31 +00:00
|
|
|
@ignore
|
|
|
|
Scenario: The RTT for the node is displayed properly
|
|
|
|
Then ok
|
|
|
|
@ignore
|
|
|
|
Scenario: The RTT for the node displays properly whilst blocking
|
|
|
|
Then ok
|
2019-03-22 17:24:40 +00:00
|
|
|
|