Skip to content

Commit ed968ce

Browse files
committed
Harmonize include_defaults tests (#30700)
This PR breaks the include_defaults functionality of the get settings API into its own test, which is skipped for mixed-mode clusters containing pre-6.4 nodes.
1 parent a9d5a09 commit ed968ce

File tree

1 file changed

+28
-0
lines changed
  • rest-api-spec/src/main/resources/rest-api-spec/test/indices.get_settings

1 file changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
setup:
3+
- do:
4+
indices.create:
5+
body:
6+
settings:
7+
index:
8+
number_of_shards: 1
9+
number_of_replicas: 1
10+
index: test-index
11+
---
12+
Test retrieval of default settings:
13+
- skip:
14+
version: " - 6.3.99"
15+
reason: include_defaults will not work in mixed-mode clusters containing nodes pre-6.4
16+
- do:
17+
indices.get_settings:
18+
flat_settings: true
19+
index: test-index
20+
- is_false:
21+
test-index.settings.index\.refresh_interval
22+
- do:
23+
indices.get_settings:
24+
include_defaults: true
25+
flat_settings: true
26+
index: test-index
27+
- match:
28+
test-index.defaults.index\.refresh_interval: "1s"

0 commit comments

Comments
 (0)