Package io.debezium.connector.mongodb
Class FiltersRestrictedIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.mongodb.FiltersRestrictedIT
- All Implemented Interfaces:
Testing
- Author:
- Anisha Mohanty
-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecordsNested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate static final intprivate static final org.slf4j.Loggerprotected static MongoDbReplicaSetstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, isEngineRunning, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidafterAll()voidstatic voidvoidprotected static com.mongodb.client.MongoClientconnect()protected Configurationprotected static voidpopulateCollection(String dbName, String colName, int count) protected static voidpopulateCollection(String dbName, String colName, int startId, int count) voidvoidvoidMethods inherited from class io.debezium.embedded.AbstractConnectorTest
assertBeginTransaction, assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEndTransaction, assertEngineIsRunning, assertHasNoSourceQuery, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertOnlyTransactionRecordsToConsume, assertRecordTransactionMetadata, assertSchemaMatchesStruct, assertSchemaMatchesStruct, assertSourceQuery, assertTombstone, assertTombstone, assertUpdate, assertValueField, configValue, consumeAvailableRecords, consumeAvailableRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsButSkipUntil, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, createEngine, createEngineBuilder, debug, getConsumer, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, storeOffsets, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForEngineShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForEngine, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
AUTH_DATABASE
- See Also:
-
TEST_DATABASE1
- See Also:
-
TEST_DATABASE2
- See Also:
-
TEST_COLLECTION1
- See Also:
-
TEST_COLLECTION2
- See Also:
-
TEST_USER
- See Also:
-
TEST_PWD
- See Also:
-
TOPIC_PREFIX
- See Also:
-
INIT_DOCUMENT_COUNT
private static final int INIT_DOCUMENT_COUNT- See Also:
-
mongo
-
-
Constructor Details
-
FiltersRestrictedIT
public FiltersRestrictedIT()
-
-
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
-
populateCollection
-
connectorConfiguration
-
shouldNotConsumeEventsFromRestrictedDatabaseCollection
@FixFor("DBZ-7485") public void shouldNotConsumeEventsFromRestrictedDatabaseCollection() throws InterruptedException- Throws:
InterruptedException
-
shouldConsumeEventsOnlyOnCollectionLevelNotDatabaseLevel
@FixFor("DBZ-7485") public void shouldConsumeEventsOnlyOnCollectionLevelNotDatabaseLevel() throws InterruptedException- Throws:
InterruptedException
-
shouldConsumeEventsOnlyFromIncludedDatabaseCollections
@FixFor("DBZ-7485") public void shouldConsumeEventsOnlyFromIncludedDatabaseCollections() throws InterruptedException- Throws:
InterruptedException
-