|
1 | 1 | ---
|
2 | 2 | "cluster health basic test":
|
3 | 3 | - skip:
|
4 |
| - version: "- 8.6.99" |
5 |
| - reason: "health was added in 8.2.0, master_is_stable in 8.4.0, and REST API updated in 8.7" |
| 4 | + version: "- 8.12.99" |
| 5 | + reason: "data stream lifecycle indicator was added in 8.13.0" |
6 | 6 |
|
7 | 7 | - do:
|
8 | 8 | health_report: { }
|
9 | 9 |
|
10 | 10 | - is_true: cluster_name
|
11 |
| - - match: { status: "green" } |
12 |
| - - match: { indicators.master_is_stable.status: "green" } |
13 |
| - - match: { indicators.master_is_stable.symptom: "The cluster has a stable master node" } |
| 11 | + # This test might execute before the health node has received all health info, resulting in status "unknown" |
| 12 | + - is_true: status |
| 13 | + - match: { indicators.master_is_stable.status: "green" } |
| 14 | + - match: { indicators.master_is_stable.symptom: "The cluster has a stable master node" } |
| 15 | + - is_true: indicators.master_is_stable.details.current_master.node_id |
| 16 | + - is_true: indicators.master_is_stable.details.current_master.name |
| 17 | + - is_true: indicators.master_is_stable.details.recent_masters.0.node_id |
| 18 | + - is_true: indicators.master_is_stable.details.recent_masters.0.name |
| 19 | + |
| 20 | + - match: { indicators.repository_integrity.status: "green" } |
| 21 | + - match: { indicators.repository_integrity.symptom: "No snapshot repositories configured." } |
| 22 | + |
| 23 | + - is_true: indicators.disk.status |
| 24 | + - is_true: indicators.disk.symptom |
| 25 | + |
| 26 | + - match: { indicators.shards_availability.status: "green" } |
| 27 | + - match: { indicators.shards_availability.symptom: "This cluster has all shards available." } |
| 28 | + - exists: indicators.shards_availability.details.initializing_replicas |
| 29 | + - exists: indicators.shards_availability.details.creating_primaries |
| 30 | + - exists: indicators.shards_availability.details.restarting_replicas |
| 31 | + - exists: indicators.shards_availability.details.unassigned_primaries |
| 32 | + - exists: indicators.shards_availability.details.started_replicas |
| 33 | + - exists: indicators.shards_availability.details.creating_replicas |
| 34 | + - exists: indicators.shards_availability.details.initializing_primaries |
| 35 | + - exists: indicators.shards_availability.details.restarting_primaries |
| 36 | + - exists: indicators.shards_availability.details.started_primaries |
| 37 | + - exists: indicators.shards_availability.details.unassigned_replicas |
| 38 | + |
| 39 | + - match: { indicators.shards_capacity.status: "green" } |
| 40 | + - match: { indicators.shards_capacity.symptom: "The cluster has enough room to add new shards." } |
| 41 | + - is_true: indicators.shards_capacity.details.data.max_shards_in_cluster |
| 42 | + - is_true: indicators.shards_capacity.details.frozen.max_shards_in_cluster |
| 43 | + |
| 44 | + - is_true: indicators.data_stream_lifecycle.status |
| 45 | + - is_true: indicators.data_stream_lifecycle.symptom |
0 commit comments