Skip to content

Commit

Permalink
Fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-wtrefon committed Dec 5, 2024
1 parent 6ba0bf5 commit cff0fac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.kafka.connect.sink.SinkRecord;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
Expand Down Expand Up @@ -99,7 +98,6 @@ void shouldInsertRecords(String description, String message, boolean withSchema)
}

@Test
@Disabled
void shouldSendValueWithWrongTypeToDLQ() throws Exception {
SinkRecord wrongValueRecord1 =
createKafkaRecord(complexJsonPayloadWithWrongValueTypeExample, 0, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,17 +258,15 @@ public void testComplexRecordEvolution() throws Exception {
new DescribeTableRow("APPROVAL", "BOOLEAN"),
new DescribeTableRow("ARRAY1", "ARRAY(NUMBER(19,0))"),
new DescribeTableRow("ARRAY2", "ARRAY(VARCHAR(16777216))"),
new DescribeTableRow("ARRAY3", "ARRAY(VARCHAR(16777216))"),
// "array4" : null -> VARCHAR(16777216
new DescribeTableRow("ARRAY3", "ARRAY(BOOLEAN)"),
new DescribeTableRow("ARRAY4", "VARCHAR(16777216)"),
new DescribeTableRow("ARRAY5", "ARRAY(ARRAY(NUMBER(19,0)))"),
new DescribeTableRow(
"NESTEDRECORD",
"OBJECT(id_int8 NUMBER(19,0), id_int16 NUMBER(19,0), rating_float32 FLOAT,"
+ " rating_float64 FLOAT, approval BOOLEAN, id_int32 NUMBER(19,0), description"
+ " VARCHAR(16777216), id_int64 NUMBER(19,0))"),
// "nestedRecord2": null -> VARCHAR(16777216)
new DescribeTableRow("NESTEDRECORD2", "VARCHAR(16777216)"),
new DescribeTableRow("NESTEDRECORD2", RECORD_METADATA_TYPE),
};
assertThat(columns).containsExactlyInAnyOrder(expectedSchema);
}
Expand Down Expand Up @@ -499,7 +497,6 @@ void shouldAppendCommentTest() throws Exception {

@ParameterizedTest(name = "{0}")
@MethodSource("nullOrEmptyValueShouldBeSentToDLQOnlyWhenNoSchema_dataSource")
@Disabled
void nullOrEmptyValueShouldBeSentToDLQOnlyWhenNoSchema(
String description, String jsonWithNullOrEmpty, String jsonWithFullData) throws Exception {
// given
Expand All @@ -526,7 +523,6 @@ void nullOrEmptyValueShouldBeSentToDLQOnlyWhenNoSchema(

@ParameterizedTest(name = "{0}")
@MethodSource("wrongTypeValueMessages_dataSource")
@Disabled
void shouldSendValueWithWrongTypeToDLQ(
String description, String correctValueJson, String wrongValueJson) throws Exception {
// when
Expand Down

0 comments on commit cff0fac

Please sign in to comment.