@@ -120,10 +120,6 @@ public void testMatchTemplates() throws Exception {
120
120
121
121
final ClusterState result = executeTask ();
122
122
123
- assertWarnings ("the default number of shards will change from [5] to [1] in 7.0.0; "
124
- + "if you wish to continue using the default of [5] shards, "
125
- + "you must manage this on the create index request or with an index template" );
126
-
127
123
assertThat (result .metaData ().index ("test" ).getAliases (), hasAllKeys ("alias_from_template_1" , "alias_from_template_2" ));
128
124
assertThat (result .metaData ().index ("test" ).getAliases (), not (hasKey ("alias_from_template_3" )));
129
125
}
@@ -138,10 +134,6 @@ public void testApplyDataFromTemplate() throws Exception {
138
134
139
135
final ClusterState result = executeTask ();
140
136
141
- assertWarnings ("the default number of shards will change from [5] to [1] in 7.0.0; "
142
- + "if you wish to continue using the default of [5] shards, "
143
- + "you must manage this on the create index request or with an index template" );
144
-
145
137
assertThat (result .metaData ().index ("test" ).getAliases (), hasKey ("alias1" ));
146
138
assertThat (result .metaData ().index ("test" ).getCustoms (), hasKey ("custom1" ));
147
139
assertThat (result .metaData ().index ("test" ).getSettings ().get ("key1" ), equalTo ("value1" ));
@@ -156,10 +148,6 @@ public void testApplyDataFromRequest() throws Exception {
156
148
157
149
final ClusterState result = executeTask ();
158
150
159
- assertWarnings ("the default number of shards will change from [5] to [1] in 7.0.0; "
160
- + "if you wish to continue using the default of [5] shards, "
161
- + "you must manage this on the create index request or with an index template" );
162
-
163
151
assertThat (result .metaData ().index ("test" ).getAliases (), hasKey ("alias1" ));
164
152
assertThat (result .metaData ().index ("test" ).getCustoms (), hasKey ("custom1" ));
165
153
assertThat (result .metaData ().index ("test" ).getSettings ().get ("key1" ), equalTo ("value1" ));
@@ -189,10 +177,6 @@ public void testRequestDataHavePriorityOverTemplateData() throws Exception {
189
177
190
178
final ClusterState result = executeTask ();
191
179
192
- assertWarnings ("the default number of shards will change from [5] to [1] in 7.0.0; "
193
- + "if you wish to continue using the default of [5] shards, "
194
- + "you must manage this on the create index request or with an index template" );
195
-
196
180
assertThat (result .metaData ().index ("test" ).getCustoms ().get ("custom1" ), equalTo (mergedCustom ));
197
181
assertThat (result .metaData ().index ("test" ).getAliases ().get ("alias1" ).getSearchRouting (), equalTo ("fromReq" ));
198
182
assertThat (result .metaData ().index ("test" ).getSettings ().get ("key1" ), equalTo ("reqValue" ));
@@ -202,10 +186,6 @@ public void testRequestDataHavePriorityOverTemplateData() throws Exception {
202
186
public void testDefaultSettings () throws Exception {
203
187
final ClusterState result = executeTask ();
204
188
205
- assertWarnings ("the default number of shards will change from [5] to [1] in 7.0.0; "
206
- + "if you wish to continue using the default of [5] shards, "
207
- + "you must manage this on the create index request or with an index template" );
208
-
209
189
assertThat (result .getMetaData ().index ("test" ).getSettings ().get (SETTING_NUMBER_OF_SHARDS ), equalTo ("5" ));
210
190
}
211
191
@@ -214,10 +194,6 @@ public void testSettingsFromClusterState() throws Exception {
214
194
215
195
final ClusterState result = executeTask ();
216
196
217
- assertWarnings ("the default number of shards will change from [5] to [1] in 7.0.0; "
218
- + "if you wish to continue using the default of [5] shards, "
219
- + "you must manage this on the create index request or with an index template" );
220
-
221
197
assertThat (result .getMetaData ().index ("test" ).getSettings ().get (SETTING_NUMBER_OF_SHARDS ), equalTo ("15" ));
222
198
}
223
199
@@ -270,10 +246,6 @@ public void testRequestStateOpen() throws Exception {
270
246
271
247
executeTask ();
272
248
273
- assertWarnings ("the default number of shards will change from [5] to [1] in 7.0.0; "
274
- + "if you wish to continue using the default of [5] shards, "
275
- + "you must manage this on the create index request or with an index template" );
276
-
277
249
verify (allocationService , times (1 )).reroute (anyObject (), anyObject ());
278
250
}
279
251
@@ -283,10 +255,6 @@ public void testIndexRemovalOnFailure() throws Exception {
283
255
284
256
expectThrows (RuntimeException .class , this ::executeTask );
285
257
286
- assertWarnings ("the default number of shards will change from [5] to [1] in 7.0.0; "
287
- + "if you wish to continue using the default of [5] shards, "
288
- + "you must manage this on the create index request or with an index template" );
289
-
290
258
verify (indicesService , times (1 )).removeIndex (anyObject (), anyObject (), anyObject ());
291
259
}
292
260
@@ -322,10 +290,6 @@ public void testValidateWaitForActiveShardsFailure() throws Exception {
322
290
323
291
IllegalArgumentException e = expectThrows (IllegalArgumentException .class , this ::executeTask );
324
292
325
- assertWarnings ("the default number of shards will change from [5] to [1] in 7.0.0; "
326
- + "if you wish to continue using the default of [5] shards, "
327
- + "you must manage this on the create index request or with an index template" );
328
-
329
293
assertThat (e .getMessage (), containsString ("invalid wait_for_active_shards" ));
330
294
}
331
295
0 commit comments