Skip to content

Commit b00b122

Browse files
committed
Remove node count assertions from cat/health test
The test validates /_cat/health response formats, not cluster topology. Hardcoding node.total=1 and node.data=1 breaks on multi-node clusters. Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>
1 parent 8786b09 commit b00b122

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

tests/default/cat/health.yaml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ chapters:
5151
response:
5252
status: 200
5353
content_type: application/json
54-
payload:
55-
- node.total: '1'
56-
node.data: '1'
5754
- synopsis: List the status of the cluster with master response (format=json).
5855
method: GET
5956
path: /_cat/health
@@ -64,9 +61,7 @@ chapters:
6461
status: 200
6562
content_type: application/json
6663
payload:
67-
- node.total: '1'
68-
node.data: '1'
69-
discovered_master: 'true'
64+
- discovered_master: 'true'
7065
- synopsis: List the status of the cluster with cluster_manager response (format=json).
7166
method: GET
7267
path: /_cat/health
@@ -77,9 +72,7 @@ chapters:
7772
status: 200
7873
content_type: application/json
7974
payload:
80-
- node.total: '1'
81-
node.data: '1'
82-
discovered_cluster_manager: 'true'
75+
- discovered_cluster_manager: 'true'
8376
- synopsis: List the status of the cluster in different formats (format=yaml).
8477
method: GET
8578
path: /_cat/health
@@ -88,9 +81,6 @@ chapters:
8881
response:
8982
status: 200
9083
content_type: application/yaml
91-
payload:
92-
- node.total: '1'
93-
node.data: '1'
9484
- synopsis: List the status of the cluster in different formats (format=cbor).
9585
distributions:
9686
excluded:
@@ -103,9 +93,6 @@ chapters:
10393
response:
10494
status: 200
10595
content_type: application/cbor
106-
payload:
107-
- node.total: '1'
108-
node.data: '1'
10996
- synopsis: List the status of the cluster in different formats (format=smile).
11097
distributions:
11198
excluded:
@@ -118,6 +105,3 @@ chapters:
118105
response:
119106
status: 200
120107
content_type: application/smile
121-
payload:
122-
- node.total: '1'
123-
node.data: '1'

0 commit comments

Comments
 (0)