Skip to content

Commit

Permalink
[TEST] Fixed whitespace in cluster.state/20_filtering.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
clintongormley committed Jan 29, 2014
1 parent 9da2df7 commit 2823361
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions rest-api-spec/test/cluster.state/20_filtering.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -34,7 +34,7 @@ setup:
index.blocks.read_only: true
- do:
cluster.state:
metric: [ blocks ]
metric: [ blocks ]

- is_true: blocks
- is_false: nodes
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -94,7 +94,7 @@ setup:
template: test-*
settings:
number_of_shards: 1

- do:
indices.put_template:
name: test2
Expand All @@ -114,7 +114,7 @@ setup:
cluster.state:
metric: [ metadata ]
index_templates: [ test1, test2 ]

- is_false: blocks
- is_false: nodes
- is_true: metadata
Expand All @@ -134,15 +134,15 @@ setup:
id: testing_document
body:
"text" : "The quick brown fox is brown."

- do:
indices.refresh: {}

- do:
cluster.state:
metric: [ routing_table, metadata ]
index: [ testidx ]

- is_false: metadata.indices.another
- is_false: routing_table.indices.another
- is_true: metadata.indices.testidx
Expand All @@ -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
Expand Down

0 comments on commit 2823361

Please sign in to comment.