Class Db2ConnectorIT

  • All Implemented Interfaces:
    io.debezium.util.Testing

    public class Db2ConnectorIT
    extends io.debezium.embedded.AbstractConnectorTest
    Integration test for the Debezium DB2 connector.
    Author:
    Jiri Pechanec, Luis Garcés-Erice, Peter Urbanetz
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest

        io.debezium.embedded.AbstractConnectorTest.SourceRecords
      • Nested classes/interfaces inherited from interface io.debezium.util.Testing

        io.debezium.util.Testing.Debug, io.debezium.util.Testing.Files, io.debezium.util.Testing.InterruptableFunction, io.debezium.util.Testing.Network, io.debezium.util.Testing.Print, io.debezium.util.Testing.Timer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private io.debezium.connector.db2.Db2Connection connection  
      • Fields inherited from class io.debezium.embedded.AbstractConnectorTest

        engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
    • Constructor Summary

      Constructors 
      Constructor Description
      Db2ConnectorIT()  
    • Field Detail

      • connection

        private io.debezium.connector.db2.Db2Connection connection
    • Constructor Detail

      • Db2ConnectorIT

        public Db2ConnectorIT()
    • Method Detail

      • deleteWithoutTombstone

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

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

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

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

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

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

        public void testTableBlacklist()
                                throws Exception
        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

        public void restartInTheMiddleOfTx()
                                    throws Exception
        Throws:
        Exception
      • testEmptySchemaWarningAfterApplyingFilters

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

        @FixFor("DBZ-775")
        public void shouldConsumeEventsWithMaskedAndTruncatedColumns()
                                                              throws Exception
        Throws:
        Exception
      • shouldRewriteIdentityKey

        @FixFor("DBZ-775")
        public void shouldRewriteIdentityKey()
                                      throws Exception
        Throws:
        Exception
      • shouldPropagateSourceTypeByDatatype

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

        @FixFor("DBZ-3668")
        public void shouldOutputRecordsInCloudEventsFormat()
                                                    throws Exception
        Throws:
        Exception
      • assertRecord

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