DBZ-435 Aligned CloudEventsConverterIT test

This commit is contained in:
Jiri Pechanec 2021-10-18 06:10:20 +02:00 committed by Gunnar Morling
parent 2140ff51be
commit c60412dee5

View File

@ -69,12 +69,19 @@ public void testCorrectFormat() throws Exception {
}
CloudEventsConverterTest.shouldConvertToCloudEventsInJson(deleteRecord, false);
CloudEventsConverterTest.shouldConvertToCloudEventsInJsonWithDataAsAvro(deleteRecord, "filter", false);
if (TestHelper.isOplogCaptureMode()) {
CloudEventsConverterTest.shouldConvertToCloudEventsInJsonWithDataAsAvro(deleteRecord, "filter", false);
}
CloudEventsConverterTest.shouldConvertToCloudEventsInAvro(deleteRecord, "mongodb", "mongo1", false);
CloudEventsConverterTest.shouldConvertToCloudEventsInJson(updateRecord, false);
CloudEventsConverterTest.shouldConvertToCloudEventsInJsonWithDataAsAvro(updateRecord, "filter", false);
CloudEventsConverterTest.shouldConvertToCloudEventsInJsonWithDataAsAvro(updateRecord, "patch", false);
if (TestHelper.isOplogCaptureMode()) {
CloudEventsConverterTest.shouldConvertToCloudEventsInJsonWithDataAsAvro(updateRecord, "filter", false);
CloudEventsConverterTest.shouldConvertToCloudEventsInJsonWithDataAsAvro(updateRecord, "patch", false);
}
else {
CloudEventsConverterTest.shouldConvertToCloudEventsInJsonWithDataAsAvro(updateRecord, "after", false);
}
CloudEventsConverterTest.shouldConvertToCloudEventsInAvro(updateRecord, "mongodb", "mongo1", false);
stopConnector();