Skip to content

Commit

Permalink
DBZ-8370 Migrate Oracle testsuite to async engine
Browse files Browse the repository at this point in the history
  • Loading branch information
vjuranek committed Nov 6, 2024
1 parent ca0e07a commit 43cdf50
Show file tree
Hide file tree
Showing 29 changed files with 58 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import io.debezium.data.VariableScaleDecimal;
import io.debezium.data.VerifyRecord;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.jdbc.JdbcValueConverters.DecimalMode;
import io.debezium.jdbc.TemporalPrecisionMode;
import io.debezium.time.MicroDuration;
Expand All @@ -56,7 +56,7 @@
*
* @author Jiri Pechanec
*/
public abstract class AbstractOracleDatatypesTest extends AbstractConnectorTest {
public abstract class AbstractOracleDatatypesTest extends AbstractAsyncEngineConnectorTest {

/**
* Key for schema parameter used to store DECIMAL/NUMERIC columns' precision.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
import io.debezium.config.Configuration;
import io.debezium.connector.oracle.util.TestHelper;
import io.debezium.data.VerifyRecord;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.util.Testing;

public class CustomSnapshotterIT extends AbstractConnectorTest {
public class CustomSnapshotterIT extends AbstractAsyncEngineConnectorTest {

private static OracleConnection connection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
import io.debezium.connector.oracle.junit.SkipTestDependingOnStrategyRule;
import io.debezium.connector.oracle.junit.SkipWhenLogMiningStrategyIs;
import io.debezium.connector.oracle.util.TestHelper;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.util.Testing;

/**
* @author Chris Cranford
*/
@SkipWhenLogMiningStrategyIs(value = SkipWhenLogMiningStrategyIs.Strategy.HYBRID, reason = "Hybrid does not support BLOB")
public class OracleBinaryModeIT extends AbstractConnectorTest {
public class OracleBinaryModeIT extends AbstractAsyncEngineConnectorTest {

@Rule
public final TestRule skipStrategyRule = new SkipTestDependingOnStrategyRule();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import io.debezium.data.Envelope;
import io.debezium.data.VerifyRecord;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.junit.logging.LogInterceptor;
import io.debezium.util.IoUtil;
import io.debezium.util.Testing;
Expand All @@ -53,7 +53,7 @@
* @author Chris Cranford
*/
@SkipWhenLogMiningStrategyIs(value = SkipWhenLogMiningStrategyIs.Strategy.HYBRID, reason = "BLOB not supported by this mine mode")
public class OracleBlobDataTypesIT extends AbstractConnectorTest {
public class OracleBlobDataTypesIT extends AbstractAsyncEngineConnectorTest {

private static final byte[] BIN_DATA = readBinaryData("data/test_lob_data.json");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import io.debezium.data.Envelope;
import io.debezium.data.VerifyRecord;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.junit.logging.LogInterceptor;
import io.debezium.util.Testing;

Expand All @@ -53,7 +53,7 @@
* @author Chris Cranford
*/
@SkipWhenLogMiningStrategyIs(value = SkipWhenLogMiningStrategyIs.Strategy.HYBRID, reason = "Hybrid does not support CLOB")
public class OracleClobDataTypeIT extends AbstractConnectorTest {
public class OracleClobDataTypeIT extends AbstractAsyncEngineConnectorTest {

private static final String JSON_DATA = Testing.Files.readResourceAsString("data/test_lob_data.json");
private static final String JSON_DATA2 = Testing.Files.readResourceAsString("data/test_lob_data2.json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
import io.debezium.connector.oracle.util.TestHelper;
import io.debezium.data.VerifyRecord;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.util.Testing;

/**
* Integration test for the Debezium Oracle connector.
*
* @author Gunnar Morling
*/
public class OracleConnectorFilterIT extends AbstractConnectorTest {
public class OracleConnectorFilterIT extends AbstractAsyncEngineConnectorTest {

private static OracleConnection connection;
private static OracleConnection adminConnection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
import io.debezium.data.VariableScaleDecimal;
import io.debezium.data.VerifyRecord;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.EmbeddedEngineConfig;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.heartbeat.DatabaseHeartbeatImpl;
import io.debezium.heartbeat.Heartbeat;
import io.debezium.jdbc.JdbcConnection;
Expand All @@ -111,7 +111,7 @@
*
* @author Gunnar Morling
*/
public class OracleConnectorIT extends AbstractConnectorTest {
public class OracleConnectorIT extends AbstractAsyncEngineConnectorTest {
private static final Logger LOGGER = LoggerFactory.getLogger(OracleConnectorIT.class);

private static final long MICROS_PER_SECOND = TimeUnit.SECONDS.toMicros(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import io.debezium.data.Envelope;
import io.debezium.data.VerifyRecord;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.junit.logging.LogInterceptor;
import io.debezium.time.Interval;
import io.debezium.time.MicroDuration;
Expand All @@ -39,7 +39,7 @@
*
* @author Chris Cranford
*/
public class OracleDefaultValueIT extends AbstractConnectorTest {
public class OracleDefaultValueIT extends AbstractAsyncEngineConnectorTest {

private OracleConnection connection;
private Consumer<Configuration.Builder> configUpdater;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import io.debezium.connector.oracle.util.TestHelper;
import io.debezium.data.VerifyRecord;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.util.Testing;

/**
Expand All @@ -36,7 +36,7 @@
* @author Chris Cranford
*/
@SkipOnDatabaseParameter(parameterName = "max_string_size", value = "EXTENDED", matches = false, reason = "Requires max_string_size set to EXTENDED")
public class OracleExtendedStringIT extends AbstractConnectorTest {
public class OracleExtendedStringIT extends AbstractAsyncEngineConnectorTest {

@Rule
public TestRule skipOnDatabaseParameter = new SkipTestDependingOnDatabaseParameterRule();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
import io.debezium.data.SchemaAndValueField;
import io.debezium.data.VerifyRecord;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.util.Testing;

/**
* Tests Oracle NUMBER type with negative scale.
*
* @author vjuranek
*/
public class OracleNumberNegativeScaleIT extends AbstractConnectorTest {
public class OracleNumberNegativeScaleIT extends AbstractAsyncEngineConnectorTest {

private static final String PRECISION_PARAMETER_KEY = "connect.decimal.precision";
private static final Schema NUMBER_SCHEMA = Decimal.builder(0).optional().parameter(PRECISION_PARAMETER_KEY, "38").build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
import io.debezium.connector.oracle.util.TestHelper;
import io.debezium.data.Envelope.FieldName;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.util.Testing;

/**
* Tests the behavior of {@code NUMBER(1)} data types.
*
* @author Chris Cranford
*/
public class OracleNumberOneIT extends AbstractConnectorTest {
public class OracleNumberOneIT extends AbstractAsyncEngineConnectorTest {

private OracleConnection connection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
import io.debezium.data.Envelope;
import io.debezium.data.VerifyRecord;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;

/**
* Integration tests when LOB is enabled and the primary key changes, to re-select LOB columns
* within the {@link BaseChangeRecordEmitter}.
*
* @author Chris Cranford
*/
public class OraclePrimaryKeyLobReselectIT extends AbstractConnectorTest {
public class OraclePrimaryKeyLobReselectIT extends AbstractAsyncEngineConnectorTest {

@Rule
public TestRule skipAdapterRule = new SkipTestDependingOnAdapterNameRule();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
import io.debezium.data.Envelope;
import io.debezium.data.VerifyRecord;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;

/**
* Integration tests for RAW data type support.
*
* @author Chris Cranford
*/
public class OracleRawDataTypeIT extends AbstractConnectorTest {
public class OracleRawDataTypeIT extends AbstractAsyncEngineConnectorTest {

private static final int RAW_LENGTH = 2000;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
import io.debezium.connector.oracle.util.TestHelper;
import io.debezium.data.Envelope;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.util.Testing;

/**
* Tests the behavior of the {@link io.debezium.connector.oracle.converters.RawToStringConverter}.
*
* @author Chris Cranford
*/
public class OracleRawToStringIT extends AbstractConnectorTest {
public class OracleRawToStringIT extends AbstractAsyncEngineConnectorTest {

private OracleConnection connection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
import io.debezium.connector.oracle.util.TestHelper;
import io.debezium.data.Envelope;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.util.Testing;

/**
* @author Chris Cranford
*/
@SkipWhenAdapterNameIsNot(value = SkipWhenAdapterNameIsNot.AdapterName.LOGMINER, reason = "Other adapters do not support ROWID data types")
public class OracleRowIdDataTypeIT extends AbstractConnectorTest {
public class OracleRowIdDataTypeIT extends AbstractAsyncEngineConnectorTest {

private static OracleConnection connection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import io.debezium.data.Envelope.FieldName;
import io.debezium.data.VerifyRecord;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.junit.logging.LogInterceptor;
import io.debezium.pipeline.ErrorHandler;
import io.debezium.relational.RelationalDatabaseConnectorConfig.DecimalHandlingMode;
Expand All @@ -48,7 +48,7 @@
*
* @author Chris Cranford
*/
public class OracleSchemaMigrationIT extends AbstractConnectorTest {
public class OracleSchemaMigrationIT extends AbstractAsyncEngineConnectorTest {

private OracleConnection connection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
import io.debezium.connector.oracle.util.TestHelper;
import io.debezium.data.Envelope;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;

/**
* Integration tests for config skip.messages.without.change
*
* @author Ronak Jain
*/
public class OracleSkipMessagesWithoutChangeConfigIT extends AbstractConnectorTest {
public class OracleSkipMessagesWithoutChangeConfigIT extends AbstractAsyncEngineConnectorTest {

@Rule
public final TestRule skipAdapterRule = new SkipTestDependingOnAdapterNameRule();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import io.debezium.data.Envelope;
import io.debezium.data.VerifyRecord;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.relational.history.SchemaHistory;
import io.debezium.util.Testing;

Expand All @@ -50,7 +50,7 @@
* @author Chris Cranford
*/
@SkipWhenLogMiningStrategyIs(value = SkipWhenLogMiningStrategyIs.Strategy.HYBRID, reason = "Hybrid does not support XML")
public class OracleXmlDataTypesIT extends AbstractConnectorTest {
public class OracleXmlDataTypesIT extends AbstractAsyncEngineConnectorTest {

// Short XML files
private static final String XML_DATA = Testing.Files.readResourceAsString("data/test_xml_data_short.xml");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import io.debezium.connector.oracle.OracleConnectorConfig.SnapshotMode;
import io.debezium.connector.oracle.util.TestHelper;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.util.Testing;

/**
Expand All @@ -34,7 +34,7 @@
*
* @author Jiri Pechanec
*/
public class SchemaHistoryTopicIT extends AbstractConnectorTest {
public class SchemaHistoryTopicIT extends AbstractAsyncEngineConnectorTest {

private static OracleConnection connection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import io.debezium.config.Configuration;
import io.debezium.connector.oracle.OracleConnectorConfig.SnapshotMode;
import io.debezium.connector.oracle.util.TestHelper;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.junit.EqualityCheck;
import io.debezium.junit.SkipTestRule;
import io.debezium.junit.SkipWhenDatabaseVersion;
Expand All @@ -34,7 +34,7 @@
* @author Jiri Pechanec
*/
@SkipWhenDatabaseVersion(check = EqualityCheck.GREATER_THAN_OR_EQUAL, major = 21, reason = "Not compatible, schema changes cause unexpected 'COL#' columns")
public class SignalsIT extends AbstractConnectorTest {
public class SignalsIT extends AbstractAsyncEngineConnectorTest {

private static OracleConnection connection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
import io.debezium.connector.oracle.util.TestHelper;
import io.debezium.data.Envelope;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.util.Testing;

/**
* Integration test for using snapshot SELECT overrides with the Debezium Oracle connector.
*
* @author Chris Cranford
*/
public class SnapshotSelectOverridesIT extends AbstractConnectorTest {
public class SnapshotSelectOverridesIT extends AbstractAsyncEngineConnectorTest {

private static final int INITIAL_RECORDS_PER_TABLE = 10;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import io.debezium.data.Envelope;
import io.debezium.data.VerifyRecord;
import io.debezium.doc.FixFor;
import io.debezium.embedded.AbstractConnectorTest;
import io.debezium.embedded.async.AbstractAsyncEngineConnectorTest;
import io.debezium.util.Collect;
import io.debezium.util.Testing;

Expand All @@ -34,7 +34,7 @@
*
* @author Jiri Pechanec
*/
public class TransactionMetadataIT extends AbstractConnectorTest {
public class TransactionMetadataIT extends AbstractAsyncEngineConnectorTest {

private static OracleConnection connection;

Expand Down
Loading

0 comments on commit 43cdf50

Please sign in to comment.