forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve response headers when creating an index
This commit preserves the response headers when creating an index and updating settings for an index. Closes elastic#23947
- Loading branch information
Showing
5 changed files
with
96 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
rest-api-spec/src/main/resources/rest-api-spec/test/indices.create/20_warnings.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
"Create index with deprecated settings": | ||
|
||
- skip: | ||
version: "all" | ||
reason: removed in 6.0 | ||
features: "warnings" | ||
- do: | ||
indices.create: | ||
index: test_index | ||
body: | ||
settings: | ||
number_of_shards: 1 | ||
shadow_replicas: true | ||
shared_filesystem: false | ||
mappings: | ||
type: | ||
properties: | ||
field: | ||
type: "string" | ||
field2: | ||
type: "long" | ||
store : "no" | ||
warnings: | ||
- "[index.shadow_replicas] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version." | ||
- "[index.shared_filesystem] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version." | ||
- "The [string] field is deprecated, please use [text] or [keyword] instead on [field]" | ||
- "Expected a boolean [true/false] for property [field2.store] but got [no]" |