File tree 2 files changed +4
-3
lines changed
main/java/org/elasticsearch/test/rest
test/java/org/elasticsearch/test/rest
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -182,8 +182,10 @@ public void initClient() throws IOException {
182
182
assert nodeVersions != null ;
183
183
}
184
184
185
- // Helper class to check warnings in REST responses with sensitivity to versions
186
- // used in the target cluster.
185
+ /**
186
+ * Helper class to check warnings in REST responses with sensitivity to versions
187
+ * used in the target cluster.
188
+ */
187
189
public static class VersionSensitiveWarningsHandler implements WarningsHandler {
188
190
Set <String > requiredSameVersionClusterWarnings = new HashSet <>();
189
191
Set <String > allowedWarnings = new HashSet <>();
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ public void testMixedVersionCluster() throws IOException {
55
55
assertFalse (handler .warningsShouldFailRequest (Arrays .asList ("expectedCurrent1" )));
56
56
assertFalse (handler .warningsShouldFailRequest (Arrays .asList ("Expected legacy warning" )));
57
57
assertFalse (handler .warningsShouldFailRequest (Arrays .asList ("expectedCurrent1" , "Expected legacy warning" )));
58
- assertFalse (handler .warningsShouldFailRequest (Arrays .asList ("Expected legacy warning" )));
59
58
assertTrue (handler .warningsShouldFailRequest (Arrays .asList ("expectedCurrent1" , "Unexpected legacy warning" )));
60
59
assertTrue (handler .warningsShouldFailRequest (Arrays .asList ("Unexpected legacy warning" )));
61
60
assertFalse (handler .warningsShouldFailRequest (Collections .emptyList ()));
You can’t perform that action at this time.
0 commit comments