@@ -175,27 +175,27 @@ protected Settings nodeSettings(int nodeOrdinal) {
175175 }
176176
177177 public void testUpdateDependentClusterSettings () {
178- SettingsException iae = expectThrows (
178+ SettingsException e = expectThrows (
179179 SettingsException .class ,
180180 () -> client ().admin ()
181181 .cluster ()
182182 .prepareUpdateSettings ()
183183 .setPersistentSettings (Settings .builder ().put ("cluster.acc.test.pw" , "asdf" ))
184184 .get ()
185185 );
186- assertEquals ("missing required setting [cluster.acc.test.user] for setting [cluster.acc.test.pw]" , iae .getMessage ());
186+ assertEquals ("missing required setting [cluster.acc.test.user] for setting [cluster.acc.test.pw]" , e .getMessage ());
187187
188- iae = expectThrows (
188+ e = expectThrows (
189189 SettingsException .class ,
190190 () -> client ().admin ()
191191 .cluster ()
192192 .prepareUpdateSettings ()
193193 .setTransientSettings (Settings .builder ().put ("cluster.acc.test.pw" , "asdf" ))
194194 .get ()
195195 );
196- assertEquals ("missing required setting [cluster.acc.test.user] for setting [cluster.acc.test.pw]" , iae .getMessage ());
196+ assertEquals ("missing required setting [cluster.acc.test.user] for setting [cluster.acc.test.pw]" , e .getMessage ());
197197
198- iae = expectThrows (
198+ e = expectThrows (
199199 SettingsException .class ,
200200 () -> client ().admin ()
201201 .cluster ()
@@ -204,23 +204,23 @@ public void testUpdateDependentClusterSettings() {
204204 .setPersistentSettings (Settings .builder ().put ("cluster.acc.test.user" , "asdf" ))
205205 .get ()
206206 );
207- assertEquals ("missing required setting [cluster.acc.test.user] for setting [cluster.acc.test.pw]" , iae .getMessage ());
207+ assertEquals ("missing required setting [cluster.acc.test.user] for setting [cluster.acc.test.pw]" , e .getMessage ());
208208
209209 if (randomBoolean ()) {
210210 client ().admin ()
211211 .cluster ()
212212 .prepareUpdateSettings ()
213213 .setTransientSettings (Settings .builder ().put ("cluster.acc.test.pw" , "asdf" ).put ("cluster.acc.test.user" , "asdf" ))
214214 .get ();
215- iae = expectThrows (
215+ e = expectThrows (
216216 SettingsException .class ,
217217 () -> client ().admin ()
218218 .cluster ()
219219 .prepareUpdateSettings ()
220220 .setTransientSettings (Settings .builder ().putNull ("cluster.acc.test.user" ))
221221 .get ()
222222 );
223- assertEquals ("missing required setting [cluster.acc.test.user] for setting [cluster.acc.test.pw]" , iae .getMessage ());
223+ assertEquals ("missing required setting [cluster.acc.test.user] for setting [cluster.acc.test.pw]" , e .getMessage ());
224224 client ().admin ()
225225 .cluster ()
226226 .prepareUpdateSettings ()
@@ -233,15 +233,15 @@ public void testUpdateDependentClusterSettings() {
233233 .setPersistentSettings (Settings .builder ().put ("cluster.acc.test.pw" , "asdf" ).put ("cluster.acc.test.user" , "asdf" ))
234234 .get ();
235235
236- iae = expectThrows (
236+ e = expectThrows (
237237 SettingsException .class ,
238238 () -> client ().admin ()
239239 .cluster ()
240240 .prepareUpdateSettings ()
241241 .setPersistentSettings (Settings .builder ().putNull ("cluster.acc.test.user" ))
242242 .get ()
243243 );
244- assertEquals ("missing required setting [cluster.acc.test.user] for setting [cluster.acc.test.pw]" , iae .getMessage ());
244+ assertEquals ("missing required setting [cluster.acc.test.user] for setting [cluster.acc.test.pw]" , e .getMessage ());
245245
246246 client ().admin ()
247247 .cluster ()
@@ -253,11 +253,11 @@ public void testUpdateDependentClusterSettings() {
253253 }
254254
255255 public void testUpdateDependentIndexSettings () {
256- SettingsException iae = expectThrows (
256+ SettingsException e = expectThrows (
257257 SettingsException .class ,
258258 () -> prepareCreate ("test" , Settings .builder ().put ("index.acc.test.pw" , "asdf" )).get ()
259259 );
260- assertEquals ("missing required setting [index.acc.test.user] for setting [index.acc.test.pw]" , iae .getMessage ());
260+ assertEquals ("missing required setting [index.acc.test.user] for setting [index.acc.test.pw]" , e .getMessage ());
261261
262262 createIndex ("test" );
263263 for (int i = 0 ; i < 2 ; i ++) {
@@ -266,7 +266,7 @@ public void testUpdateDependentIndexSettings() {
266266 client ().admin ().indices ().prepareClose ("test" ).get ();
267267 }
268268
269- iae = expectThrows (
269+ e = expectThrows (
270270 SettingsException .class ,
271271 () -> client ().admin ()
272272 .indices ()
@@ -275,7 +275,7 @@ public void testUpdateDependentIndexSettings() {
275275 .execute ()
276276 .actionGet ()
277277 );
278- assertEquals ("missing required setting [index.acc.test.user] for setting [index.acc.test.pw]" , iae .getMessage ());
278+ assertEquals ("missing required setting [index.acc.test.user] for setting [index.acc.test.pw]" , e .getMessage ());
279279
280280 // user has no dependency
281281 client ().admin ()
@@ -294,7 +294,7 @@ public void testUpdateDependentIndexSettings() {
294294 .actionGet ();
295295
296296 // now try to remove it and make sure it fails
297- iae = expectThrows (
297+ e = expectThrows (
298298 SettingsException .class ,
299299 () -> client ().admin ()
300300 .indices ()
@@ -303,7 +303,7 @@ public void testUpdateDependentIndexSettings() {
303303 .execute ()
304304 .actionGet ()
305305 );
306- assertEquals ("missing required setting [index.acc.test.user] for setting [index.acc.test.pw]" , iae .getMessage ());
306+ assertEquals ("missing required setting [index.acc.test.user] for setting [index.acc.test.pw]" , e .getMessage ());
307307
308308 // now we are consistent
309309 client ().admin ()
0 commit comments