Skip to content

Commit

Permalink
[hotfix][cdc-connector][mongodb] Fix LegacyMongoDBSourceExampleTest c…
Browse files Browse the repository at this point in the history
…annot run
  • Loading branch information
Jiabao-Sun committed Aug 19, 2024
1 parent d6b687b commit 6fa0852
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,18 @@

import static org.apache.flink.cdc.connectors.mongodb.LegacyMongoDBContainer.FLINK_USER;
import static org.apache.flink.cdc.connectors.mongodb.LegacyMongoDBContainer.FLINK_USER_PASSWORD;
import static org.apache.flink.cdc.connectors.mongodb.LegacyMongoDBTestBase.MONGODB_CONTAINER;

/** Example Tests for {@link MongoDBSource}. */
public class LegacyMongoDBSourceExampleTest extends LegacyMongoDBSourceTestBase {

@Test
@Ignore("Test ignored because it won't stop and is used for manual test")
public void testConsumingAllEvents() throws Exception {
String inventory = SHARD.executeCommandFileInSeparateDatabase("inventory");
String inventory = ROUTER.executeCommandFileInSeparateDatabase("inventory");

SourceFunction<String> sourceFunction =
MongoDBSource.<String>builder()
.hosts(MONGODB_CONTAINER.getHostAndPort())
.hosts(ROUTER.getHostAndPort())
.username(FLINK_USER)
.password(FLINK_USER_PASSWORD)
.databaseList(inventory)
Expand Down

0 comments on commit 6fa0852

Please sign in to comment.