Class OracleSchemaMigrationIT

  • All Implemented Interfaces:
    Testing

    public class OracleSchemaMigrationIT
    extends AbstractConnectorTest
    Integration tests for the Oracle DDL and schema migration.
    Author:
    Chris Cranford
    • Field Detail

      • connection

        private io.debezium.connector.oracle.OracleConnection connection
    • Constructor Detail

      • OracleSchemaMigrationIT

        public OracleSchemaMigrationIT()
    • Method Detail

      • shouldStreamNewlyCreatedNotFilteredTable

        @FixFor("DBZ-2916")
        public void shouldStreamNewlyCreatedNotFilteredTable()
                                                      throws Exception
        Throws:
        Exception
      • shouldNotStreamNewlyCreatedTableDueToFilters

        @FixFor("DBZ-2916")
        public void shouldNotStreamNewlyCreatedTableDueToFilters()
                                                          throws Exception
        Throws:
        Exception
      • shouldStreamAlterTableAddColumnSchemaChange

        @FixFor("DBZ-2916")
        public void shouldStreamAlterTableAddColumnSchemaChange()
                                                         throws Exception
        Throws:
        Exception
      • shouldStreamAlterTableAddMultipleColumnsSchemaChange

        @FixFor("DBZ-2916")
        public void shouldStreamAlterTableAddMultipleColumnsSchemaChange()
                                                                  throws Exception
        Throws:
        Exception
      • shouldStreamAlterTableRenameColumnSchemaChange

        @FixFor("DBZ-2916")
        public void shouldStreamAlterTableRenameColumnSchemaChange()
                                                            throws Exception
        Throws:
        Exception
      • shouldStreamAlterTableDropColumnSchemaChange

        @FixFor("DBZ-2916")
        public void shouldStreamAlterTableDropColumnSchemaChange()
                                                          throws Exception
        Throws:
        Exception
      • shouldStreamAlterTableDropMultipleColumnsSchemaChange

        @FixFor("DBZ-2916")
        public void shouldStreamAlterTableDropMultipleColumnsSchemaChange()
                                                                   throws Exception
        Throws:
        Exception
      • shouldStreamAlterTableRenameTableSchemaChange

        @FixFor("DBZ-2916")
        public void shouldStreamAlterTableRenameTableSchemaChange()
                                                           throws Exception
        Throws:
        Exception
      • shouldNotStreamAfterTableRenameToExcludedName

        @FixFor("DBZ-2916")
        public void shouldNotStreamAfterTableRenameToExcludedName()
                                                           throws Exception
        Throws:
        Exception
      • shouldStreamAlterTableChangeColumnDataType

        @FixFor("DBZ-2916")
        public void shouldStreamAlterTableChangeColumnDataType()
                                                        throws Exception
        Throws:
        Exception
      • shouldStreamAlterTableChangeColumnNullability

        @FixFor("DBZ-2916")
        public void shouldStreamAlterTableChangeColumnNullability()
                                                           throws Exception
        Throws:
        Exception
      • shouldStreamAlterTableChangeColumnPrecisionAndScale

        @FixFor("DBZ-2916")
        public void shouldStreamAlterTableChangeColumnPrecisionAndScale()
                                                                 throws Exception
        Throws:
        Exception
      • shouldSnapshotAndStreamSchemaChangesUsingExplicitCasedNames

        @FixFor("DBZ-2916")
        public void shouldSnapshotAndStreamSchemaChangesUsingExplicitCasedNames()
                                                                         throws Exception
        Throws:
        Exception
      • shouldNotEmitDdlEventsForNonTableObjects

        @FixFor("DBZ-2916")
        public void shouldNotEmitDdlEventsForNonTableObjects()
                                                      throws Exception
        Throws:
        Exception
      • getTableIdString

        private static String getTableIdString​(String schemaName,
                                               String tableName)
      • assertSnapshotSchemaChange

        private static void assertSnapshotSchemaChange​(org.apache.kafka.connect.source.SourceRecord record)
      • assertStreamingSchemaChange

        private static void assertStreamingSchemaChange​(org.apache.kafka.connect.source.SourceRecord record)
      • assertTableChange

        private static void assertTableChange​(org.apache.kafka.connect.data.Struct change,
                                              String type,
                                              String schema,
                                              String table)
      • assertTableChangePrimaryKeyNames

        private static void assertTableChangePrimaryKeyNames​(org.apache.kafka.connect.data.Struct change,
                                                             String... names)
      • assertTableChangeColumn

        private static void assertTableChangeColumn​(org.apache.kafka.connect.data.Struct change,
                                                    int index,
                                                    String columnName)
      • assertSourceTableInfo

        private static void assertSourceTableInfo​(org.apache.kafka.connect.source.SourceRecord record,
                                                  String schema,
                                                  String table)