tuteng commented on a change in pull request #5590: [Issue
5474][pulsar-io-debezium] Support CDC Connector for MongoDB
URL: https://github.com/apache/pulsar/pull/5590#discussion_r344998116
##########
File path:
tests/integration/src/test/java/org/apache/pulsar/tests/integration/functions/PulsarFunctionsTest.java
##########
@@ -2167,4 +2173,61 @@ private void testDebeziumPostgreSqlConnect() throws
Exception {
getSourceInfoNotFound(tenant, namespace, sourceName);
}
+ private void testDebeziumMongoDbConnect() throws Exception {
+
+ final String tenant = TopicName.PUBLIC_TENANT;
+ final String namespace = TopicName.DEFAULT_NAMESPACE;
+ final String outputTopicName = "debe-output-topic-name";
+ final String consumeTopicName =
"public/default/dbserver1.inventory.products";
+ final String sourceName = "test-source-connector-"
+ + functionRuntimeType + "-name-" + randomName(8);
+
+ // This is the binlog count that contained in postgresql container.
+ final int numMessages = 26;
+
+ @Cleanup
+ PulsarClient client = PulsarClient.builder()
+ .serviceUrl(pulsarCluster.getPlainTextServiceUrl())
+ .build();
+
+ @Cleanup
+ Consumer<KeyValue<byte[], byte[]>> consumer =
client.newConsumer(KeyValueSchema.kvBytes())
+ .topic(consumeTopicName)
+ .subscriptionName("debezium-source-tester")
+ .subscriptionType(SubscriptionType.Exclusive)
+ .subscribe();
+
+ @Cleanup
+ DebeziumMongoDbSourceTester sourceTester = new
DebeziumMongoDbSourceTester(pulsarCluster);
+
+ // setup debezium postgresql server
Review comment:
Update comment information from postgresql to mongodb
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services