You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertThat(message, containsString("[2:15] [v] is not a valid param attribute, a valid attribute is any of VALUE, IDENTIFIER, PATTERN; "));
387
+
assertThat(
388
+
message,
389
+
containsString("[2:15] [v] is not a valid param attribute, a valid attribute is any of VALUE, IDENTIFIER, PATTERN; ")
390
+
);
388
391
assertThat(message, containsString("[2:38] [n2] has multiple param attributes [identifier, pattern],"));
389
392
assertThat(message, containsString("only one of VALUE, IDENTIFIER, PATTERN can be defined in a param;"));
390
393
assertThat(message, containsString("[2:38] [v2] is not a valid value for PATTERN parameter,"));
@@ -401,17 +404,39 @@ public void testInvalidParamsForIdentifiersPatterns() throws IOException {
401
404
assertThat(message, containsString("[4:36] [{a6.1=v6.1, a6.2=v6.2}] is not a valid value for IDENTIFIER parameter,"));
402
405
assertThat(message, containsString("a valid value for IDENTIFIER parameter is a string;"));
403
406
assertThat(message, containsString("[4:36] n6={identifier={a6.1=v6.1, a6.2=v6.2}} is not supported as a parameter;"));
404
-
assertThat(message, containsString("[4:98] [n7] has no valid param attribute, only one of VALUE, IDENTIFIER, PATTERN can be defined in a param;"));
405
-
assertThat(message, containsString("[5:34] n9={identifier=[x, y]} parameter is multivalued, only VALUE parameters can be multivalued;"));
406
-
assertThat(message, containsString("[5:72] n10={pattern=[x*, y*]} parameter is multivalued, only VALUE parameters can be multivalued;"));
407
+
assertThat(
408
+
message,
409
+
containsString("[4:98] [n7] has no valid param attribute, only one of VALUE, IDENTIFIER, PATTERN can be defined in a param;")
410
+
);
411
+
assertThat(
412
+
message,
413
+
containsString("[5:34] n9={identifier=[x, y]} parameter is multivalued, only VALUE parameters can be multivalued;")
414
+
);
415
+
assertThat(
416
+
message,
417
+
containsString("[5:72] n10={pattern=[x*, y*]} parameter is multivalued, only VALUE parameters can be multivalued;")
418
+
);
407
419
assertThat(message, containsString("a valid value for PATTERN parameter is a string and contains *;"));
408
-
assertThat(message, containsString("[6:1] [1] is not a valid value for IDENTIFIER parameter, a valid value for IDENTIFIER parameter is a string;"));
420
+
assertThat(
421
+
message,
422
+
containsString("[6:1] [1] is not a valid value for IDENTIFIER parameter, a valid value for IDENTIFIER parameter is a string;")
423
+
);
409
424
assertThat(message, containsString("[6:31] [true] is not a valid value for PATTERN parameter,"));
410
425
assertThat(message, containsString("a valid value for PATTERN parameter is a string and contains *;"));
411
-
assertThat(message, containsString("[6:61] [null] is not a valid value for IDENTIFIER parameter, a valid value for IDENTIFIER parameter is a string;"));
426
+
assertThat(
427
+
message,
428
+
containsString(
429
+
"[6:61] [null] is not a valid value for IDENTIFIER parameter, a valid value for IDENTIFIER parameter is a string;"
430
+
)
431
+
);
412
432
assertThat(message, containsString("[6:94] [v14] is not a valid value for PATTERN parameter,"));
413
433
assertThat(message, containsString("a valid value for PATTERN parameter is a string and contains *;"));
414
-
assertThat(message, containsString("[7:1] Cannot parse more than one key:value pair as parameter, found [{n16:{identifier=v16}}, {n15:{pattern=v15*}}"));
434
+
assertThat(
435
+
message,
436
+
containsString(
437
+
"[7:1] Cannot parse more than one key:value pair as parameter, found [{n16:{identifier=v16}}, {n15:{pattern=v15*}}"
438
+
)
439
+
);
415
440
}
416
441
417
442
// Test for https://github.com/elastic/elasticsearch/issues/110028
0 commit comments