5cf063fc8a
- yarn upgrade consul-api-double which includes `status/leader` - add all the ember-data things required to call a new endpoint - Pass the new leader variable through to the template - use the new leader variable in the template to set a leader - add acceptance testing to verify leaders are highlighted - Change testing navigation/api requests to status/leader (on the node listing page, status/leader is now the last get request to be called). - Template whitespace commit (less indenting) - adds a test to to assert no errors happen with an unelected leader
19 lines
444 B
Gherkin
19 lines
444 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
|
|
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
|
|
|