Skip to content

Commit 6559eec

Browse files
committed
testing in an internalClusterTest rather than a yaml test to avoid adding a NodeFeature
1 parent dc4dc99 commit 6559eec

File tree

2 files changed

+2
-72
lines changed

2 files changed

+2
-72
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.put_settings/20_update_non_dynamic_settings.yml

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -55,74 +55,3 @@ setup:
5555
flat_settings: false
5656
- match:
5757
test-index.settings.index.codec: "best_compression"
58-
59-
---
60-
"Test update non dynamic settings on multiple indices":
61-
- do:
62-
indices.create:
63-
index: test-index-1
64-
body:
65-
settings:
66-
index:
67-
number_of_replicas: 0
68-
69-
- do:
70-
indices.create:
71-
index: test-index-2
72-
body:
73-
settings:
74-
index:
75-
number_of_replicas: 0
76-
77-
- do:
78-
indices.put_settings:
79-
index: test-index-1
80-
body:
81-
number_of_replicas: 1
82-
83-
- do:
84-
indices.put_settings:
85-
index: test-index-2
86-
body:
87-
number_of_replicas: 1
88-
89-
- do:
90-
catch: bad_request
91-
indices.put_settings:
92-
index: test-index-*
93-
body:
94-
index.codec: best_compression
95-
96-
- do:
97-
catch: bad_request
98-
indices.put_settings:
99-
index: test-index-*
100-
reopen: false
101-
body:
102-
index.codec: best_compression
103-
104-
- do:
105-
indices.get_settings:
106-
index: test-index-*
107-
flat_settings: false
108-
- match:
109-
test-index-1.settings.index.codec: null
110-
- match:
111-
test-index-2.settings.index.codec: null
112-
113-
- do:
114-
indices.put_settings:
115-
index: test-index-*
116-
reopen: true
117-
body:
118-
index.codec: best_compression
119-
- match: { acknowledged: true }
120-
121-
- do:
122-
indices.get_settings:
123-
index: test-index-*
124-
flat_settings: false
125-
- match:
126-
test-index-1.settings.index.codec: "best_compression"
127-
- match:
128-
test-index-2.settings.index.codec: "best_compression"

server/src/internalClusterTest/java/org/elasticsearch/cluster/metadata/MetadataUpdateSettingsServiceIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public void testThatNonDynamicSettingChangesTakeEffect() throws Exception {
3939
* This test makes sure that when non-dynamic settings are updated that they actually take effect (as opposed to just being set
4040
* in the cluster state).
4141
*/
42-
createIndex("test", Settings.EMPTY);
42+
createIndex("test-1", Settings.EMPTY);
43+
createIndex("test-2", Settings.EMPTY);
4344
MetadataUpdateSettingsService metadataUpdateSettingsService = internalCluster().getCurrentMasterNodeInstance(
4445
MetadataUpdateSettingsService.class
4546
);

0 commit comments

Comments
 (0)