File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
main/java/org/elasticsearch/test/rest
test/java/org/elasticsearch/test/rest Expand file tree Collapse file tree 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 {
182182 assert nodeVersions != null ;
183183 }
184184
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+ */
187189 public static class VersionSensitiveWarningsHandler implements WarningsHandler {
188190 Set <String > requiredSameVersionClusterWarnings = new HashSet <>();
189191 Set <String > allowedWarnings = new HashSet <>();
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ public void testMixedVersionCluster() throws IOException {
5555 assertFalse (handler .warningsShouldFailRequest (Arrays .asList ("expectedCurrent1" )));
5656 assertFalse (handler .warningsShouldFailRequest (Arrays .asList ("Expected legacy warning" )));
5757 assertFalse (handler .warningsShouldFailRequest (Arrays .asList ("expectedCurrent1" , "Expected legacy warning" )));
58- assertFalse (handler .warningsShouldFailRequest (Arrays .asList ("Expected legacy warning" )));
5958 assertTrue (handler .warningsShouldFailRequest (Arrays .asList ("expectedCurrent1" , "Unexpected legacy warning" )));
6059 assertTrue (handler .warningsShouldFailRequest (Arrays .asList ("Unexpected legacy warning" )));
6160 assertFalse (handler .warningsShouldFailRequest (Collections .emptyList ()));
You can’t perform that action at this time.
0 commit comments