Skip to content

Commit 696f259

Browse files
committed
test: remove testIncompatibleVersionDataStreamSet
ES 7 is no longer supported. The test was asserting a data-stream version check that was removed in 52f1fab, making it dead code.
1 parent 52f1fab commit 696f259

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/test/java/io/confluent/connect/elasticsearch/ValidatorTest.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -488,18 +488,6 @@ public void testTimestampMappingDataStreamNotSet() {
488488
assertHasErrorMessage(result, DATA_STREAM_TIMESTAMP_CONFIG, TIMESTAMP_FIELD_NOT_ALLOWED_ERROR);
489489
}
490490

491-
@Test
492-
public void testIncompatibleVersionDataStreamSet() throws IOException {
493-
configureDataStream();
494-
validator = new Validator(props, () -> mockClient);
495-
when(mockClient.info().version().number()).thenReturn("7.8.1");
496-
497-
Config result = validator.validate();
498-
assertHasErrorMessage(result, CONNECTION_URL_CONFIG, "not compatible with data streams");
499-
assertHasErrorMessage(result, DATA_STREAM_TYPE_CONFIG, "not compatible with data streams");
500-
assertHasErrorMessage(result, DATA_STREAM_DATASET_CONFIG, "not compatible with data streams");
501-
}
502-
503491
@Test
504492
public void testIncompatibleVersionDataStreamNotSet() throws IOException {
505493
validator = new Validator(props, () -> mockClient);

0 commit comments

Comments
 (0)