fix(lastleg): route all relabel pickups directly to outbound and verify final schemas
This commit is contained in:
+6
-1
@@ -13,7 +13,12 @@ class AppointmentWorkSchemaContractTest {
|
||||
String target=Files.readString(Path.of(path));
|
||||
for(String table:List.of("ll_dispatch_appointment_allocation","ll_appointment_work_commitment","ll_appointment_work_guard","ll_appointment_work","ll_appointment_work_history"))
|
||||
assertEquals(definition(source,table),definition(target,table),path+" differs for "+table);
|
||||
assertTrue(target.contains("INSERT INTO ll_appointment_work_guard(id,initialized) SELECT 1,FALSE"));
|
||||
if (path.startsWith("../deploy/")) {
|
||||
assertTrue(target.contains("INSERT INTO ll_appointment_work_guard (id,initialized) VALUES (1,FALSE);"));
|
||||
assertFalse(target.contains("WHERE NOT EXISTS(SELECT 1 FROM ll_appointment_work_guard"));
|
||||
} else {
|
||||
assertTrue(target.contains("INSERT INTO ll_appointment_work_guard(id,initialized) SELECT 1,FALSE"));
|
||||
}
|
||||
}
|
||||
assertTrue(source.contains("scan_cursor VARCHAR(128)"));
|
||||
assertTrue(source.contains("PRIMARY KEY(dispatch_item_id,batch_key,source_key,destination_key)"));
|
||||
|
||||
Reference in New Issue
Block a user