2019-08-12 15:43:18 +00:00
|
|
|
@setupApplicationTest
|
|
|
|
Feature: dc / nodes / no-leader
|
|
|
|
Scenario: Leader hasn't been elected
|
|
|
|
Given 1 datacenter model with the value "dc-1"
|
2022-10-12 21:21:49 +00:00
|
|
|
And 3 node models from yaml
|
|
|
|
---
|
|
|
|
- Node: Node-A
|
|
|
|
Meta:
|
2022-10-13 14:41:26 +00:00
|
|
|
synthetic-node: false
|
2022-10-12 21:21:49 +00:00
|
|
|
Checks:
|
|
|
|
- Status: critical
|
|
|
|
ServiceID: ""
|
|
|
|
- Node: Node-B
|
|
|
|
Meta:
|
2022-10-13 14:41:26 +00:00
|
|
|
synthetic-node: false
|
2022-10-12 21:21:49 +00:00
|
|
|
Checks:
|
|
|
|
- Status: passing
|
|
|
|
ServiceID: ""
|
|
|
|
- Node: Node-C
|
|
|
|
Meta:
|
2022-10-13 14:41:26 +00:00
|
|
|
synthetic-node: false
|
2022-10-12 21:21:49 +00:00
|
|
|
Checks:
|
|
|
|
- Status: warning
|
|
|
|
ServiceID: ""
|
|
|
|
---
|
2019-08-12 15:43:18 +00:00
|
|
|
And the url "/v1/status/leader" responds with from yaml
|
|
|
|
---
|
|
|
|
body: |
|
|
|
|
""
|
|
|
|
---
|
|
|
|
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
|
|
|
|
And I don't see leader on the nodes
|
|
|
|
|