Class LogFileCollectorIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.oracle.logminer.LogFileCollectorIT
- All Implemented Interfaces:
Testing
Integration tests for the
LogFileCollector implementation.- Author:
- Chris Cranford
-
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 TypeFieldDescriptionprivate static io.debezium.connector.oracle.OracleConnectionfinal org.junit.rules.TestRuleFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, isEngineRunning, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertLogFilesHaveNoGaps(int instances, List<io.debezium.connector.oracle.logminer.LogFile> logFiles, List<io.debezium.connector.oracle.Scn> scnList) voidbefore()static voidstatic voidprivate io.debezium.connector.oracle.logminer.LogFileCollectorgetLogFileCollector(Duration logRetention, boolean archiveLogsOnly, String destinationName) private static intgetNumberOfInstances(io.debezium.connector.oracle.OracleConnection connection) private io.debezium.connector.oracle.ScngetOldestArchivedScn(List<io.debezium.connector.oracle.Scn> oneDayArchivedNextScn) private List<io.debezium.connector.oracle.Scn>getOneDayArchivedLogNextScn(io.debezium.connector.oracle.OracleConnection conn) 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
-
skipAdapterRule
public final org.junit.rules.TestRule skipAdapterRule -
connection
private static io.debezium.connector.oracle.OracleConnection connection
-
-
Constructor Details
-
LogFileCollectorIT
public LogFileCollectorIT()
-
-
Method Details
-
beforeSuperClass
- Throws:
SQLException
-
closeConnection
- Throws:
SQLException
-
before
- Throws:
SQLException
-
shouldAddCorrectLogFiles
- Throws:
Exception
-
shouldOnlyReturnArchiveLogs
- Throws:
Exception
-
shouldGetArchiveLogsWithDestinationSpecified
- Throws:
Exception
-
getLogFileCollector
-
assertLogFilesHaveNoGaps
-
getOldestArchivedScn
private io.debezium.connector.oracle.Scn getOldestArchivedScn(List<io.debezium.connector.oracle.Scn> oneDayArchivedNextScn) -
getOneDayArchivedLogNextScn
private List<io.debezium.connector.oracle.Scn> getOneDayArchivedLogNextScn(io.debezium.connector.oracle.OracleConnection conn) throws SQLException - Throws:
SQLException
-
getNumberOfInstances
private static int getNumberOfInstances(io.debezium.connector.oracle.OracleConnection connection) throws SQLException - Throws:
SQLException
-