This commit is contained in:
2026-09-20 22:18:59 +08:00
parent 2bf3a1c8eb
commit 2aa80f08d0
12 changed files with 58 additions and 30 deletions
@@ -66,10 +66,10 @@ test('domestic and overseas PDA operators use isolated authorities', () => {
assert.match(iamSql, /permission\.permission_code='lastleg:pda:operate'/)
})
test('unified migration creates the phase-four role matrix in the IAM schema used by its assertion routine', () => {
test('unified baseline creates the phase-four role matrix in the IAM schema', () => {
assert.match(
unifiedSql,
/USE baiyue_iam;[\s\S]*?DROP TEMPORARY TABLE IF EXISTS tmp_phase4_warehouse_role_permission;\s*CREATE TEMPORARY TABLE tmp_phase4_warehouse_role_permission/,
/USE baiyue_iam;[\s\S]*?'OVERSEAS_WAREHOUSE_PDA_OPERATOR'[\s\S]*?'lastleg:pda:operate'/,
)
assert.match(unifiedSql, /CREATE PROCEDURE assert_phase4_warehouse_role_minimum\(\)/)
assert.doesNotMatch(unifiedSql, /tmp_phase4_warehouse_role_permission|assert_phase4_warehouse_role_minimum/)
})