feat(fleet): enforce reviewed trips and original fee coverage for dispatch
This commit is contained in:
+11
-2
@@ -32,7 +32,16 @@ class OverseasPhase4PermissionSqlContractTest {
|
||||
"platform:overseas-business:looseboard:list",
|
||||
"platform:overseas-master-data:quote:list",
|
||||
"platform:overseas-master-data:exchange-rate:list",
|
||||
"platform:overseas-master-data:vehicle:list");
|
||||
"platform:overseas-master-data:vehicle:list",
|
||||
"platform:overseas-master-data:driver:list",
|
||||
"platform:overseas-master-data:driver:create",
|
||||
"platform:overseas-master-data:driver:edit",
|
||||
"platform:overseas-master-data:driver:status",
|
||||
"platform:overseas-master-data:driver:review",
|
||||
"platform:overseas-master-data:driver:upload",
|
||||
"platform:overseas-master-data:vehicle:record-create",
|
||||
"platform:overseas-master-data:vehicle:record-edit",
|
||||
"platform:overseas-master-data:vehicle:record-upload");
|
||||
|
||||
@Test
|
||||
void canonicalCatalogDisablesLegacyCodesAndExcludesFrozenDomains() throws Exception {
|
||||
@@ -42,7 +51,7 @@ class OverseasPhase4PermissionSqlContractTest {
|
||||
assertThat(sql).contains(REQUIRED.toArray(String[]::new));
|
||||
assertThat(sql).contains("'lastleg:pda:operate'");
|
||||
assertPdaPickerGrant(sql);
|
||||
assertThat(catalog).hasSize(59).noneMatch(code -> code.endsWith(":view"));
|
||||
assertThat(catalog).hasSize(68).noneMatch(code -> code.endsWith(":view"));
|
||||
assertThat(sql).contains(
|
||||
"(5107003,0,'PLATFORM','BUTTON',5107000,'platform:overseas-warehouse:warehouse-transfer:approve'");
|
||||
assertThat(sql).contains("CALL assert_warehouse_transfer_approval_permission()",
|
||||
|
||||
Reference in New Issue
Block a user