mirror of
https://github.com/status-im/consul.git
synced 2025-01-12 14:55:02 +00:00
04bd576179
When the Consul serf health check is failing, this means that the health checks registered with the agent may no longer be correct. Therefore we show a notice to the user when we detect that the serf health check is failing both for the health check listing for nodes and for service instances. There were a few little things we fixed up whilst we were here: - We use our @replace decorator to replace an empty Type with serf in the model. - We noticed that ServiceTags can be null, so we replace that with an empty array. - We added docs for both our Notice component and the Consul::HealthCheck::List component. Notice now defaults to @type=info.
41 lines
1019 B
Gherkin
41 lines
1019 B
Gherkin
@setupApplicationTest
|
|
Feature: dc / nodes / show / health-checks
|
|
Background:
|
|
Given 1 datacenter model with the value "dc1"
|
|
Scenario: A failing serf check
|
|
Given 1 node model from yaml
|
|
---
|
|
ID: node-0
|
|
Checks:
|
|
- Type: ''
|
|
Name: Serf Health Status
|
|
CheckID: serfHealth
|
|
Status: critical
|
|
Output: ouch
|
|
---
|
|
When I visit the node page for yaml
|
|
---
|
|
dc: dc1
|
|
node: node-0
|
|
---
|
|
And I see healthChecksIsSelected on the tabs
|
|
And I see criticalSerfNotice on the tabs.healthChecksTab
|
|
Scenario: A passing serf check
|
|
Given 1 node model from yaml
|
|
---
|
|
ID: node-0
|
|
Checks:
|
|
- Type: ''
|
|
Name: Serf Health Status
|
|
CheckID: serfHealth
|
|
Status: passing
|
|
Output: Agent alive and reachable
|
|
---
|
|
When I visit the node page for yaml
|
|
---
|
|
dc: dc1
|
|
node: node-0
|
|
---
|
|
And I see healthChecksIsSelected on the tabs
|
|
And I don't see criticalSerfNotice on the tabs.healthChecksTab
|