OpenSearch/rest-api-spec/test/indices.refresh/10_basic.yaml

59 lines
1021 B
YAML

---
setup:
- do:
indices.create:
index: test_1
body:
settings:
index:
number_of_replicas: 0
number_of_shards: 5
- do:
indices.create:
index: test_2
body:
settings:
index:
number_of_replicas: 0
number_of_shards: 5
- do:
cluster.health:
wait_for_status: green
---
"Indices refresh test _all":
- do:
indices.refresh:
index: [_all]
- match: { _shards.total: 10 }
- match: { _shards.successful: 10 }
- match: { _shards.failed: 0 }
---
"Indices refresh test empty array":
- do:
indices.refresh:
index: []
- match: { _shards.total: 10 }
- match: { _shards.successful: 10 }
- match: { _shards.failed: 0 }
---
"Indices refresh test no-match wildcard":
- do:
indices.refresh:
index: [bla*]
- match: { _shards.total: 0 }
- match: { _shards.successful: 0 }
- match: { _shards.failed: 0 }