diff options
author | Sergey Novikov <snov@snov.me> | 2017-06-09 19:47:47 +0200 |
---|---|---|
committer | Jason Tedor <jason@tedor.me> | 2017-06-09 13:47:47 -0400 |
commit | 7c8657df0e728a4538fcf025de4f6b42e7ee1938 (patch) | |
tree | 6206929214062283b6c1a79f7bfbc35f5790efa2 /rest-api-spec/src | |
parent | 5997e4a39dd3e878a887f44592a27036ca4b9a49 (diff) |
Return the index name on a create index response
This commit modifies the create index response so that it includes the
index name.
Relates #25139
Diffstat (limited to 'rest-api-spec/src')
-rw-r--r-- | rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/10_basic.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/10_basic.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/10_basic.yml index 34d9be5ebc..a99e9f30fb 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/10_basic.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/10_basic.yml @@ -31,6 +31,19 @@ - match: { test_index.settings.index.number_of_replicas: "0"} --- +"Create index": + - skip: + version: " - 5.99.99" + reason: create index response contains index name since 5.6.0 + + - do: + indices.create: + index: test_index + + - match: { acknowledged: true } + - match: { index: "test_index"} + +--- "Create index with wait_for_active_shards set to all": - do: |