Skip to content

Commit f27517e

Browse files
committed
feat: support for Debezium asyncronous engine
1 parent 00e5ef0 commit f27517e

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

stackgres-k8s/src/stream/src/test/java/io/stackgres/stream/jobs/DebeziumUtilTest.java

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,31 @@ void givenAExpectedStream_shouldExtractDebeziumEnginePropertiesCorrectly() {
128128
streamProperties.getTransforms()
129129
.values().stream().toList().get(1)
130130
.values().stream().toList().get(1))),
131+
assertEntryInProperties(
132+
props, Map.entry(
133+
"record.processing.threads",
134+
streamProperties.getRecordProcessingThreads())),
135+
assertEntryInProperties(
136+
props, Map.entry(
137+
"record.processing.with.serial.consumer",
138+
streamProperties.getRecordProcessingWithSerialConsumer())),
139+
assertEntryInProperties(
140+
props, Map.entry(
141+
"record.processing.order",
142+
streamProperties.getRecordProcessingOrder())),
143+
assertEntryInProperties(
144+
props, Map.entry(
145+
"record.processing.shutdown.timeout.ms",
146+
streamProperties.getRecordProcessingShutdownTimeoutMs())),
147+
assertEntryInProperties(
148+
props, Map.entry(
149+
"task.management.timeout.ms",
150+
streamProperties.getTaskManagementTimeoutMs())),
131151
// Leave this so we can order all the properties correctly without bothering for the latest `,`
132152
Map.entry("|", streamProperties)
133153
));
134154
props.forEach((key, value) -> {
135-
Assertions.assertTrue(expectedProperties.containsKey(key));
155+
Assertions.assertTrue(expectedProperties.containsKey(key), "expected not found for property " + key);
136156
});
137157
}
138158

0 commit comments

Comments
 (0)