david-streamlio opened a new pull request, #58: URL: https://github.com/apache/pulsar-connectors/pull/58
Fixes #42 ### Motivation The `debezium/mongodb` module has zero tests — `DebeziumMongoDbSource` is never exercised in CI (see the integration-test coverage sweep in #42). ### Modifications Add `DebeziumMongoDbSourceTest`, cloned from the existing `DebeziumMysqlSourceTest` pattern: - `MongoDBContainer` (mongo:7.0) — Testcontainers starts it as a single-node replica set, which Debezium requires for change streams - `PulsarContainer` backing Debezium's offset storage via the mocked `SourceContext`, exactly as in the MySQL test - Two documents seeded before `open()`; the test asserts the initial snapshot emits at least 2 CDC records Adds `testcontainers-mongodb`, `testcontainers-pulsar`, `pulsar-client`, and `mongodb-driver-sync` test dependencies to the module (all already present in the version catalog). ### Verifying this change Ran locally against Docker: `./gradlew :debezium:pulsar-io-debezium-mongodb:test` → `testMongoDbCdcEvents PASSED`, `BUILD SUCCESSFUL in 49s`. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
