mirror of https://github.com/status-im/consul.git
39 lines
882 B
Gherkin
39 lines
882 B
Gherkin
@setupApplicationTest
|
|
Feature: dc / nodes / no-leader
|
|
Scenario: Leader hasn't been elected
|
|
Given 1 datacenter model with the value "dc-1"
|
|
And 3 node models from yaml
|
|
---
|
|
- Node: Node-A
|
|
Meta:
|
|
synthetic-node: false
|
|
Checks:
|
|
- Status: critical
|
|
ServiceID: ""
|
|
- Node: Node-B
|
|
Meta:
|
|
synthetic-node: false
|
|
Checks:
|
|
- Status: passing
|
|
ServiceID: ""
|
|
- Node: Node-C
|
|
Meta:
|
|
synthetic-node: false
|
|
Checks:
|
|
- Status: warning
|
|
ServiceID: ""
|
|
---
|
|
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
|
|
|