Class SqlServerConnectorIT

  • All Implemented Interfaces:
    Testing

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

      • connection

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

      • SqlServerConnectorIT

        public SqlServerConnectorIT()
    • Method Detail

      • deleteWithoutTombstone

        public void deleteWithoutTombstone()
                                    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
      • 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
      • 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
      • testEmptySchemaWarningAfterApplyingFilters

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

        @FixFor("DBZ-1242")
        public void testNoEmptySchemaWarningAfterApplyingFilters()
                                                          throws Exception
        Throws:
        Exception
      • 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
      • assertRecord

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