Class MongoDbConnectorDatabaseRestrictedIT

java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.mongodb.MongoDbConnectorDatabaseRestrictedIT
All Implemented Interfaces:
Testing

public class MongoDbConnectorDatabaseRestrictedIT extends AbstractConnectorTest
  • Field Details

  • Constructor Details

    • MongoDbConnectorDatabaseRestrictedIT

      public MongoDbConnectorDatabaseRestrictedIT()
  • Method Details

    • beforeAll

      public static void beforeAll()
    • afterAll

      public static void afterAll()
    • beforeEach

      public void beforeEach()
    • afterEach

      public void afterEach()
    • connect

      protected static com.mongodb.client.MongoClient connect()
    • populateCollection

      protected static void populateCollection(String dbName, String colName, int count)
    • populateCollection

      protected static void populateCollection(String dbName, String colName, int startId, int count)
    • connectorConfiguration

      protected Configuration connectorConfiguration(String user, String password)
    • shouldConsumeAllEventsFromDatabaseWithPermissions

      public void shouldConsumeAllEventsFromDatabaseWithPermissions() throws InterruptedException
      Throws:
      InterruptedException
    • shouldFailWithoutPermissions

      public void shouldFailWithoutPermissions()
    • consumeAndVerifyFromInitialSnapshot

      protected void consumeAndVerifyFromInitialSnapshot(String topic, int expectedRecords) throws InterruptedException
      Throws:
      InterruptedException
    • verifyFromInitialSnapshot

      protected void verifyFromInitialSnapshot(org.apache.kafka.connect.source.SourceRecord record, AtomicBoolean foundLast)
    • consumeAndVerifyNotFromInitialSnapshot

      protected void consumeAndVerifyNotFromInitialSnapshot(String topic, int expectedRecords) throws InterruptedException
      Throws:
      InterruptedException
    • consumeAndVerifyNotFromInitialSnapshot

      protected void consumeAndVerifyNotFromInitialSnapshot(String topic, int expectedRecords, Envelope.Operation op) throws InterruptedException
      Throws:
      InterruptedException
    • verifyNotFromInitialSnapshot

      protected void verifyNotFromInitialSnapshot(org.apache.kafka.connect.source.SourceRecord record)
    • verifyOperation

      protected void verifyOperation(org.apache.kafka.connect.source.SourceRecord record, Envelope.Operation expected)