diff --git a/rest-api-spec/test/cluster.state/20_filtering.yaml b/rest-api-spec/test/cluster.state/20_filtering.yaml index 76fd5ef7bd220..7c77ea52e420f 100644 --- a/rest-api-spec/test/cluster.state/20_filtering.yaml +++ b/rest-api-spec/test/cluster.state/20_filtering.yaml @@ -13,8 +13,8 @@ setup: "Filtering the cluster state by blocks should return the blocks field even if the response is empty": - do: cluster.state: - metric: [ blocks ] - + metric: [ blocks ] + - is_true: blocks - is_false: nodes - is_false: metadata @@ -34,7 +34,7 @@ setup: index.blocks.read_only: true - do: cluster.state: - metric: [ blocks ] + metric: [ blocks ] - is_true: blocks - is_false: nodes @@ -48,8 +48,8 @@ setup: "Filtering the cluster state by nodes only should work": - do: cluster.state: - metric: [ nodes ] - + metric: [ nodes ] + - is_false: blocks - is_true: nodes - is_false: metadata @@ -61,8 +61,8 @@ setup: "Filtering the cluster state by metadata only should work": - do: cluster.state: - metric: [ metadata ] - + metric: [ metadata ] + - is_false: blocks - is_false: nodes - is_true: metadata @@ -75,8 +75,8 @@ setup: "Filtering the cluster state by routing table only should work": - do: cluster.state: - metric: [ routing_table ] - + metric: [ routing_table ] + - is_false: blocks - is_false: nodes - is_false: metadata @@ -94,7 +94,7 @@ setup: template: test-* settings: number_of_shards: 1 - + - do: indices.put_template: name: test2 @@ -114,7 +114,7 @@ setup: cluster.state: metric: [ metadata ] index_templates: [ test1, test2 ] - + - is_false: blocks - is_false: nodes - is_true: metadata @@ -134,7 +134,7 @@ setup: id: testing_document body: "text" : "The quick brown fox is brown." - + - do: indices.refresh: {} @@ -142,7 +142,7 @@ setup: cluster.state: metric: [ routing_table, metadata ] index: [ testidx ] - + - is_false: metadata.indices.another - is_false: routing_table.indices.another - is_true: metadata.indices.testidx @@ -152,9 +152,9 @@ setup: "Filtering the cluster state using _all for indices and metrics should work": - do: cluster.state: - metric: [ '_all' ] - index: [ '_all' ] - + metric: [ '_all' ] + index: [ '_all' ] + - is_true: blocks - is_true: nodes - is_true: metadata