Class SqlServerConnectorIT

java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.sqlserver.SqlServerConnectorIT
All Implemented Interfaces:
Testing

public class SqlServerConnectorIT extends AbstractConnectorTest
Integration test for the Debezium SQL Server connector.
Author:
Jiri Pechanec
  • Field Details

    • connection

      private io.debezium.connector.sqlserver.SqlServerConnection connection
  • Constructor Details

    • SqlServerConnectorIT

      public SqlServerConnectorIT()
  • Method Details

    • before

      public void before() throws SQLException
      Throws:
      SQLException
    • after

      public void after() throws SQLException
      Throws:
      SQLException
    • createAndDelete

      public void createAndDelete() throws Exception
      Throws:
      Exception
    • readOnlyApplicationIntent

      @FixFor("DBZ-1642") public void readOnlyApplicationIntent() throws Exception
      Throws:
      Exception
    • timestampAndTimezone

      @FixFor("DBZ-1643") public void timestampAndTimezone() throws Exception
      Throws:
      Exception
    • deleteWithoutTombstone

      public void deleteWithoutTombstone() throws Exception
      Throws:
      Exception
    • update

      public void update() throws Exception
      Throws:
      Exception
    • updatePrimaryKey

      public void updatePrimaryKey() throws Exception
      Throws:
      Exception
    • updatePrimaryKeyWithRestartInMiddle

      @FixFor("DBZ-1152") public void updatePrimaryKeyWithRestartInMiddle() throws Exception
      Throws:
      Exception
    • updatePrimaryKeyTwiceWithRestartInMiddleOfTx

      @FixFor("DBZ-2329") public void updatePrimaryKeyTwiceWithRestartInMiddleOfTx() throws Exception
      Throws:
      Exception
    • streamChangesWhileStopped

      public void streamChangesWhileStopped() throws Exception
      Throws:
      Exception
    • verifyOffsets

      @FixFor("DBZ-1069") public void verifyOffsets() throws Exception
      Throws:
      Exception
    • testWhitelistTable

      public void testWhitelistTable() throws Exception
      Throws:
      Exception
    • testTableIncludeList

      public void testTableIncludeList() throws Exception
      Throws:
      Exception
    • testBlacklistTable

      public void testBlacklistTable() throws Exception
      Throws:
      Exception
    • testTableExcludeList

      public void testTableExcludeList() throws Exception
      Throws:
      Exception
    • blacklistColumnWhenCdcColumnsDoNotMatchWithOriginalSnapshot

      @FixFor("DBZ-1617") public void blacklistColumnWhenCdcColumnsDoNotMatchWithOriginalSnapshot() throws Exception
      Throws:
      Exception
    • testBlacklistColumn

      @FixFor("DBZ-1067") public void testBlacklistColumn() throws Exception
      Throws:
      Exception
    • testColumnExcludeList

      @FixFor("DBZ-1067") public void testColumnExcludeList() throws Exception
      Throws:
      Exception
    • testColumnIncludeList

      @FixFor("DBZ-2522") public void testColumnIncludeList() throws Exception
      Throws:
      Exception
    • shouldHandleInvalidColumnFilter

      @FixFor("DBZ-3505") public void shouldHandleInvalidColumnFilter() throws Exception
      Throws:
      Exception
    • shouldConsumeEventsWithMaskedHashedColumns

      @FixFor("DBZ-1692") public void shouldConsumeEventsWithMaskedHashedColumns() throws Exception
      Throws:
      Exception
    • shouldConsumeEventsWithMaskedAndTruncatedColumns

      @FixFor("DBZ-1972") public void shouldConsumeEventsWithMaskedAndTruncatedColumns() throws Exception
      Throws:
      Exception
    • whenCaptureInstanceExcludesColumnsExpectSnapshotAndStreamingToExcludeColumns

      @FixFor("DBZ-2522") public void whenCaptureInstanceExcludesColumnsExpectSnapshotAndStreamingToExcludeColumns() throws Exception
      Throws:
      Exception
    • whenMultipleCaptureInstancesExcludesColumnsExpectLatestCDCTableUtilized

      @FixFor("DBZ-2522") public void whenMultipleCaptureInstancesExcludesColumnsExpectLatestCDCTableUtilized() throws Exception
      Throws:
      Exception
    • whenCaptureInstanceExcludesColumnsAndColumnsRenamedExpectNoErrors

      @FixFor("DBZ-2522") public void whenCaptureInstanceExcludesColumnsAndColumnsRenamedExpectNoErrors() throws Exception
      Throws:
      Exception
    • excludeColumnWhenCaptureInstanceExcludesColumns

      @FixFor("DBZ-1068") public void excludeColumnWhenCaptureInstanceExcludesColumns() throws Exception
      Throws:
      Exception
    • excludeColumnWhenCaptureInstanceExcludesColumnInMiddleOfTable

      @FixFor("DBZ-2522") public void excludeColumnWhenCaptureInstanceExcludesColumnInMiddleOfTable() throws Exception
      Throws:
      Exception
    • includeColumnsWhenCaptureInstanceExcludesColumnInMiddleOfTable

      @FixFor("DBZ-2522") public void includeColumnsWhenCaptureInstanceExcludesColumnInMiddleOfTable() throws Exception
      Throws:
      Exception
    • excludeMultipleColumnsWhenCaptureInstanceExcludesSingleColumn

      @FixFor("DBZ-2522") public void excludeMultipleColumnsWhenCaptureInstanceExcludesSingleColumn() throws Exception
      Throws:
      Exception
    • includeMultipleColumnsWhenCaptureInstanceExcludesSingleColumn

      @FixFor("DBZ-2522") public void includeMultipleColumnsWhenCaptureInstanceExcludesSingleColumn() throws Exception
      Throws:
      Exception
    • shouldPropagateDatabaseDriverProperties

      @FixFor("DBZ-964") public void shouldPropagateDatabaseDriverProperties() throws Exception
      Passing the "applicationName" property which can be asserted from the connected sessions".
      Throws:
      Exception
    • restartInTheMiddleOfTx

      private void restartInTheMiddleOfTx(boolean restartJustAfterSnapshot, boolean afterStreaming) throws Exception
      Throws:
      Exception
    • restartInTheMiddleOfTxAfterSnapshot

      @FixFor("DBZ-1128") public void restartInTheMiddleOfTxAfterSnapshot() throws Exception
      Throws:
      Exception
    • restartInTheMiddleOfTxAfterCompletedTx

      @FixFor("DBZ-1128") public void restartInTheMiddleOfTxAfterCompletedTx() throws Exception
      Throws:
      Exception
    • restartInTheMiddleOfTx

      @FixFor("DBZ-1128") public void restartInTheMiddleOfTx() throws Exception
      Throws:
      Exception
    • testEmptySchemaWarningAfterApplyingFilters

      @FixFor("DBZ-1242") public void testEmptySchemaWarningAfterApplyingFilters() throws Exception
      Throws:
      Exception
    • testNoEmptySchemaWarningAfterApplyingFilters

      @FixFor("DBZ-1242") public void testNoEmptySchemaWarningAfterApplyingFilters() throws Exception
      Throws:
      Exception
    • keylessTable

      @FixFor("DBZ-916") public void keylessTable() throws Exception
      Throws:
      Exception
    • shouldRewriteIdentityKey

      @FixFor("DBZ-1015") public void shouldRewriteIdentityKey() throws InterruptedException, SQLException
      Throws:
      InterruptedException
      SQLException
    • shouldCaptureTableSchema

      @FixFor("DBZ-1491") public void shouldCaptureTableSchema() throws SQLException, InterruptedException
      Throws:
      SQLException
      InterruptedException
    • shouldDetectPurgedHistory

      @FixFor("DBZ-1923") public void shouldDetectPurgedHistory() throws Exception
      Throws:
      Exception
    • shouldHonorSourceTimestampMode

      @FixFor("DBZ-1988") public void shouldHonorSourceTimestampMode() throws InterruptedException, SQLException
      Throws:
      InterruptedException
      SQLException
    • useShortTableNamesForColumnMapper

      @FixFor("DBZ-1312") public void useShortTableNamesForColumnMapper() throws Exception
      Throws:
      Exception
    • useLongTableNamesForColumnMapper

      @FixFor("DBZ-1312") public void useLongTableNamesForColumnMapper() throws Exception
      Throws:
      Exception
    • useLongTableNamesForKeyMapper

      @FixFor("DBZ-1312") public void useLongTableNamesForKeyMapper() throws Exception
      Throws:
      Exception
    • useShortTableNamesForKeyMapper

      @FixFor("DBZ-1312") public void useShortTableNamesForKeyMapper() throws Exception
      Throws:
      Exception
    • shouldPropagateSourceTypeByDatatype

      @FixFor({"DBZ-1916","DBZ-1830"}) public void shouldPropagateSourceTypeByDatatype() throws Exception
      Throws:
      Exception
    • shouldNotStreamWhenUsingSnapshotModeInitialOnly

      @FixFor("DBZ-2379") public void shouldNotStreamWhenUsingSnapshotModeInitialOnly() throws Exception
      Throws:
      Exception
    • testMaxLsnSelectStatementWithoutLimit

      @FixFor("DBZ-2582") public void testMaxLsnSelectStatementWithoutLimit() throws Exception
      Throws:
      Exception
    • testMaxLsnSelectStatementWithLimit

      @FixFor("DBZ-2582") public void testMaxLsnSelectStatementWithLimit() throws Exception
      Throws:
      Exception
    • shouldEmitNoEventsForSkippedUpdateAndDeleteOperations

      @FixFor("DBZ-2699") public void shouldEmitNoEventsForSkippedUpdateAndDeleteOperations() throws Exception
      Throws:
      Exception
    • shouldReturnSingleTaskConfig

      public void shouldReturnSingleTaskConfig()
    • shouldReturnTwoTaskConfigs

      public void shouldReturnTwoTaskConfigs()
    • shouldIncludeDatabaseNameIntoTopicAndSchemaNamesInMultiPartitionMode

      @FixFor("DBZ-2975") public void shouldIncludeDatabaseNameIntoTopicAndSchemaNamesInMultiPartitionMode() throws Exception
      Throws:
      Exception
    • shouldApplySchemaFilters

      @FixFor("DBZ-2793") public void shouldApplySchemaFilters() throws Exception
      Throws:
      Exception
    • shouldIgnoreNullOffsetsWhenRecoveringHistory

      @FixFor("DBZ-5033") public void shouldIgnoreNullOffsetsWhenRecoveringHistory()
    • assertRecord

      private void assertRecord(org.apache.kafka.connect.data.Struct record, List<SchemaAndValueField> expected)