Package io.debezium.connector.oracle
Class OracleBlobDataTypesIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.connector.oracle.OracleBlobDataTypesIT
-
- All Implemented Interfaces:
Testing
public class OracleBlobDataTypesIT extends AbstractConnectorTest
Integration tests for BLOB data type support.- Author:
- Chris Cranford
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecords
-
Nested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer
-
-
Field Summary
Fields Modifier and Type Field Description private static byte[]BIN_DATAprivate io.debezium.connector.oracle.OracleConnectionconnectionorg.junit.rules.TestRuleskipAdapterRule-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description OracleBlobDataTypesIT()
-
Method Summary
-
Methods 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, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, debug, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
-
-
-
Method Detail
-
before
public void before()
-
shouldSnapshotBlobDataTypes
@FixFor("DBZ-2948") public void shouldSnapshotBlobDataTypes() throws Exception
- Throws:
Exception
-
shouldStreamSmallBlobDataTypeValues
@FixFor("DBZ-2948") public void shouldStreamSmallBlobDataTypeValues() throws Exception
- Throws:
Exception
-
shouldStreamSmallBlobDataTypeValuesWithNonBlobFields
@FixFor("DBZ-2948") public void shouldStreamSmallBlobDataTypeValuesWithNonBlobFields() throws Exception
- Throws:
Exception
-
shouldStreamLargeBlobDataTypeValues
@FixFor("DBZ-2948") public void shouldStreamLargeBlobDataTypeValues() throws Exception
- Throws:
Exception
-
shouldStreamLargeBlobDataTypeValuesWithNonBlobFields
@FixFor("DBZ-2948") public void shouldStreamLargeBlobDataTypeValuesWithNonBlobFields() throws Exception
- Throws:
Exception
-
shouldStreamMixedBlobDataTypeValuesWithNonBlobFieldsSameTable
@FixFor("DBZ-2948") public void shouldStreamMixedBlobDataTypeValuesWithNonBlobFieldsSameTable() throws Exception
- Throws:
Exception
-
shouldNotStreamAnyChangesWhenLobEraseIsDetected
@FixFor("DBZ-2948") public void shouldNotStreamAnyChangesWhenLobEraseIsDetected() throws Exception
- Throws:
Exception
-
shouldStreamBlobFieldsWithPrimaryKeyChange
@FixFor("DBZ-2948") public void shouldStreamBlobFieldsWithPrimaryKeyChange() throws Exception
- Throws:
Exception
-
shouldReconcileTransactionWhenAllBlobClobAreInitializedAsNull
@FixFor("DBZ-3631") public void shouldReconcileTransactionWhenAllBlobClobAreInitializedAsNull() throws Exception
- Throws:
Exception
-
shouldNotEmitBlobFieldValuesWhenLobSupportIsNotEnabled
@FixFor("DBZ-3645") public void shouldNotEmitBlobFieldValuesWhenLobSupportIsNotEnabled() throws Exception
- Throws:
Exception
-
shouldStreamNotNullBlobUsingEmptyBlobFunction
@FixFor("DBZ-3893") public void shouldStreamNotNullBlobUsingEmptyBlobFunction() throws Exception
- Throws:
Exception
-
shouldStreamBlobWithUnavailableColumnValuePlaceholder
@FixFor("DBZ-4276") public void shouldStreamBlobWithUnavailableColumnValuePlaceholder() throws Exception
- Throws:
Exception
-
shouldStreamBlobsWrittenInChunkedMode
@FixFor("DBZ-4366") public void shouldStreamBlobsWrittenInChunkedMode() throws Exception
- Throws:
Exception
-
shouldStreamBlobsWrittenInInterleavedChunkedMode
@FixFor("DBZ-4366") public void shouldStreamBlobsWrittenInInterleavedChunkedMode() throws Exception
- Throws:
Exception
-
shouldStreamBlobsWrittenInInterleavedChunkedMode2
@FixFor("DBZ-4366") public void shouldStreamBlobsWrittenInInterleavedChunkedMode2() throws Exception
- Throws:
Exception
-
shouldStreamBlobsWrittenInInterleavedChunkedMode3
@FixFor("DBZ-4366") public void shouldStreamBlobsWrittenInInterleavedChunkedMode3() throws Exception
- Throws:
Exception
-
part
private static byte[] part(byte[] buffer, int start, int length)
-
before
private static org.apache.kafka.connect.data.Struct before(org.apache.kafka.connect.source.SourceRecord record)
-
after
private static org.apache.kafka.connect.data.Struct after(org.apache.kafka.connect.source.SourceRecord record)
-
readBinaryData
private static byte[] readBinaryData(String pathOnClasspath)
-
createBlob
private Blob createBlob(byte[] data) throws SQLException
- Throws:
SQLException
-
getByteBufferFromBlob
private static ByteBuffer getByteBufferFromBlob(Blob blob) throws SQLException
- Throws:
SQLException
-
getUnavailableValuePlaceholder
private static ByteBuffer getUnavailableValuePlaceholder(Configuration config)
-
getBeforeField
private static Object getBeforeField(org.apache.kafka.connect.source.SourceRecord record, String fieldName)
-
-