|
|
@ -535,25 +535,58 @@ public class PostgreSQLConnectorITCase extends PostgresTestBase {
|
|
|
|
|
|
|
|
|
|
|
|
// waiting for change events finished.
|
|
|
|
// waiting for change events finished.
|
|
|
|
waitForSinkSize("sink", 16);
|
|
|
|
waitForSinkSize("sink", 16);
|
|
|
|
|
|
|
|
String databaseName = POSTGRES_CONTAINER.getDatabaseName();
|
|
|
|
|
|
|
|
|
|
|
|
List<String> expected =
|
|
|
|
List<String> expected =
|
|
|
|
Arrays.asList(
|
|
|
|
Arrays.asList(
|
|
|
|
"+I(postgres,inventory,products,101,scooter,Small 2-wheel scooter,3.140)",
|
|
|
|
"+I("
|
|
|
|
"+I(postgres,inventory,products,102,car battery,12V car battery,8.100)",
|
|
|
|
+ databaseName
|
|
|
|
"+I(postgres,inventory,products,103,12-pack drill bits,12-pack of drill bits with sizes ranging from #40 to #3,0.800)",
|
|
|
|
+ ",inventory,products,101,scooter,Small 2-wheel scooter,3.140)",
|
|
|
|
"+I(postgres,inventory,products,104,hammer,12oz carpenter's hammer,0.750)",
|
|
|
|
"+I("
|
|
|
|
"+I(postgres,inventory,products,105,hammer,14oz carpenter's hammer,0.875)",
|
|
|
|
+ databaseName
|
|
|
|
"+I(postgres,inventory,products,106,hammer,16oz carpenter's hammer,1.000)",
|
|
|
|
+ ",inventory,products,102,car battery,12V car battery,8.100)",
|
|
|
|
"+I(postgres,inventory,products,107,rocks,box of assorted rocks,5.300)",
|
|
|
|
"+I("
|
|
|
|
"+I(postgres,inventory,products,108,jacket,water resistent black wind breaker,0.100)",
|
|
|
|
+ databaseName
|
|
|
|
"+I(postgres,inventory,products,109,spare tire,24 inch spare tire,22.200)",
|
|
|
|
+ ",inventory,products,103,12-pack drill bits,12-pack of drill bits with sizes ranging from #40 to #3,0.800)",
|
|
|
|
"+I(postgres,inventory,products,110,jacket,water resistent white wind breaker,0.200)",
|
|
|
|
"+I("
|
|
|
|
"+I(postgres,inventory,products,111,scooter,Big 2-wheel scooter ,5.180)",
|
|
|
|
+ databaseName
|
|
|
|
"+U(postgres,inventory,products,106,hammer,18oz carpenter hammer,1.000)",
|
|
|
|
+ ",inventory,products,104,hammer,12oz carpenter's hammer,0.750)",
|
|
|
|
"+U(postgres,inventory,products,107,rocks,box of assorted rocks,5.100)",
|
|
|
|
"+I("
|
|
|
|
"+U(postgres,inventory,products,110,jacket,new water resistent white wind breaker,0.500)",
|
|
|
|
+ databaseName
|
|
|
|
"+U(postgres,inventory,products,111,scooter,Big 2-wheel scooter ,5.170)",
|
|
|
|
+ ",inventory,products,105,hammer,14oz carpenter's hammer,0.875)",
|
|
|
|
"-D(postgres,inventory,products,111,scooter,Big 2-wheel scooter ,5.170)");
|
|
|
|
"+I("
|
|
|
|
|
|
|
|
+ databaseName
|
|
|
|
|
|
|
|
+ ",inventory,products,106,hammer,16oz carpenter's hammer,1.000)",
|
|
|
|
|
|
|
|
"+I("
|
|
|
|
|
|
|
|
+ databaseName
|
|
|
|
|
|
|
|
+ ",inventory,products,107,rocks,box of assorted rocks,5.300)",
|
|
|
|
|
|
|
|
"+I("
|
|
|
|
|
|
|
|
+ databaseName
|
|
|
|
|
|
|
|
+ ",inventory,products,108,jacket,water resistent black wind breaker,0.100)",
|
|
|
|
|
|
|
|
"+I("
|
|
|
|
|
|
|
|
+ databaseName
|
|
|
|
|
|
|
|
+ ",inventory,products,109,spare tire,24 inch spare tire,22.200)",
|
|
|
|
|
|
|
|
"+I("
|
|
|
|
|
|
|
|
+ databaseName
|
|
|
|
|
|
|
|
+ ",inventory,products,110,jacket,water resistent white wind breaker,0.200)",
|
|
|
|
|
|
|
|
"+I("
|
|
|
|
|
|
|
|
+ databaseName
|
|
|
|
|
|
|
|
+ ",inventory,products,111,scooter,Big 2-wheel scooter ,5.180)",
|
|
|
|
|
|
|
|
"+U("
|
|
|
|
|
|
|
|
+ databaseName
|
|
|
|
|
|
|
|
+ ",inventory,products,106,hammer,18oz carpenter hammer,1.000)",
|
|
|
|
|
|
|
|
"+U("
|
|
|
|
|
|
|
|
+ databaseName
|
|
|
|
|
|
|
|
+ ",inventory,products,107,rocks,box of assorted rocks,5.100)",
|
|
|
|
|
|
|
|
"+U("
|
|
|
|
|
|
|
|
+ databaseName
|
|
|
|
|
|
|
|
+ ",inventory,products,110,jacket,new water resistent white wind breaker,0.500)",
|
|
|
|
|
|
|
|
"+U("
|
|
|
|
|
|
|
|
+ databaseName
|
|
|
|
|
|
|
|
+ ",inventory,products,111,scooter,Big 2-wheel scooter ,5.170)",
|
|
|
|
|
|
|
|
"-D("
|
|
|
|
|
|
|
|
+ databaseName
|
|
|
|
|
|
|
|
+ ",inventory,products,111,scooter,Big 2-wheel scooter ,5.170)");
|
|
|
|
List<String> actual = TestValuesTableFactory.getRawResults("sink");
|
|
|
|
List<String> actual = TestValuesTableFactory.getRawResults("sink");
|
|
|
|
Collections.sort(actual);
|
|
|
|
Collections.sort(actual);
|
|
|
|
Collections.sort(expected);
|
|
|
|
Collections.sort(expected);
|
|
|
|