2018-05-11 12:47:21 +00:00
|
|
|
@setupApplicationTest
|
2019-08-12 15:43:18 +00:00
|
|
|
Feature: dc / nodes / index
|
|
|
|
Background:
|
2018-05-11 12:47:21 +00:00
|
|
|
Given 1 datacenter model with the value "dc-1"
|
2019-08-12 15:43:18 +00:00
|
|
|
And the url "/v1/status/leader" responds with from yaml
|
|
|
|
---
|
|
|
|
body: |
|
|
|
|
"211.245.86.75:8500"
|
|
|
|
---
|
2022-02-11 09:52:27 +00:00
|
|
|
Scenario: Viewing a node with an unhealthy NodeCheck
|
|
|
|
Given 1 node model from yaml
|
|
|
|
---
|
|
|
|
- Checks:
|
|
|
|
- Status: critical
|
|
|
|
ServiceID: ""
|
|
|
|
---
|
|
|
|
When I visit the nodes page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/nodes
|
|
|
|
Then I see 1 node models
|
|
|
|
And I see status on the nodes.0 like "critical"
|
|
|
|
Scenario: Viewing a node with an unhealthy ServiceCheck
|
|
|
|
Given 1 node model from yaml
|
|
|
|
---
|
|
|
|
- Checks:
|
|
|
|
- Status: passing
|
|
|
|
ServiceID: ""
|
|
|
|
- Status: critical
|
|
|
|
ServiceID: web
|
|
|
|
---
|
|
|
|
When I visit the nodes page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/nodes
|
|
|
|
Then I see 1 node models
|
|
|
|
And I see status on the nodes.0 like "passing"
|
2019-08-12 15:43:18 +00:00
|
|
|
Scenario: Viewing nodes in the listing
|
|
|
|
Given 3 node models
|
|
|
|
When I visit the nodes page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/nodes
|
2020-01-28 14:25:52 +00:00
|
|
|
And the title should be "Nodes - Consul"
|
2022-06-23 13:16:26 +00:00
|
|
|
And a GET request was made to "/v1/internal/ui/nodes?dc=dc-1&with-peers=true"
|
2019-08-12 15:43:18 +00:00
|
|
|
Then I see 3 node models
|
2020-08-28 13:21:03 +00:00
|
|
|
Scenario: Seeing the leader in node listing
|
2019-08-12 15:43:18 +00:00
|
|
|
Given 3 node models from yaml
|
|
|
|
---
|
|
|
|
- Address: 211.245.86.75
|
|
|
|
Checks:
|
2020-11-19 16:05:46 +00:00
|
|
|
- Status: critical
|
2019-08-12 15:43:18 +00:00
|
|
|
Name: Warning check
|
|
|
|
- Address: 10.0.0.1
|
2020-11-19 16:05:46 +00:00
|
|
|
Checks:
|
|
|
|
- Status: passing
|
2019-08-12 15:43:18 +00:00
|
|
|
- Address: 10.0.0.3
|
2020-11-19 16:05:46 +00:00
|
|
|
Checks:
|
|
|
|
- Status: passing
|
2019-08-12 15:43:18 +00:00
|
|
|
---
|
|
|
|
When I visit the nodes page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
Then the url should be /dc-1/nodes
|
|
|
|
Then I see 3 node models
|
2020-08-28 13:21:03 +00:00
|
|
|
And I see leader on the nodes.0
|
2020-02-04 15:45:25 +00:00
|
|
|
Scenario: Searching the nodes with name and IP address
|
|
|
|
Given 3 node models from yaml
|
|
|
|
---
|
|
|
|
- Node: node-01
|
|
|
|
Address: 10.0.0.0
|
|
|
|
- Node: node-02
|
|
|
|
Address: 10.0.0.1
|
|
|
|
- Node: node-03
|
|
|
|
Address: 10.0.0.2
|
|
|
|
---
|
|
|
|
When I visit the nodes page for yaml
|
|
|
|
---
|
|
|
|
dc: dc-1
|
|
|
|
---
|
|
|
|
And I see 3 node models
|
|
|
|
Then I fill in with yaml
|
|
|
|
---
|
|
|
|
s: node-01
|
|
|
|
---
|
|
|
|
And I see 1 node model
|
|
|
|
And I see 1 node model with the name "node-01"
|
|
|
|
Then I fill in with yaml
|
|
|
|
---
|
|
|
|
s: 10.0.0.1
|
|
|
|
---
|
|
|
|
And I see 1 node model
|
2020-11-19 16:05:46 +00:00
|
|
|
And I see 1 node model with the name "node-02"
|