完成单机TEST统一入口与可靠投递回归收尾

This commit is contained in:
2026-09-29 19:48:34 +08:00
parent 64a70c9f28
commit 6c0a026cc4
89 changed files with 968 additions and 983 deletions
@@ -69,16 +69,12 @@ class Phase5OverseasUpgradeSqlContractTest {
}
@Test
void overseasFixedAdminProjectionAssertionMatchesItsAuthorityArray() throws Exception {
void unifiedSessionDoesNotInitializeASecondAuthorizationProjection() throws Exception {
String overseas = repositoryFile("deploy/sql/海外区域统一增量-MySQL8.sql");
int start = overseas.indexOf("VALUES ('AUTHORIZATION','1000001'");
int end = overseas.indexOf(";", start);
String authorityRow = overseas.substring(start, end);
int authorityCount = count(authorityRow, "platform:");
assertThat(authorityCount).isPositive();
assertThat(authorityRow).contains("baseline-platform-admin-authorization-v0");
assertThat(overseas).doesNotContain("@platform_admin_overseas_authorities");
assertThat(overseas).doesNotContain("CREATE TABLE ll_security_projection", "CREATE TABLE ll_security_event_inbox",
"baseline-platform-admin-authorization-v0", "@platform_admin_overseas_authorities");
String primary = repositoryFile("deploy/sql/头程数据库统一增量-MySQL8.sql");
assertThat(primary).contains("CREATE TABLE iam_security_subject_version", "CREATE TABLE iam_security_tenant_version");
}
@Test
@@ -39,7 +39,9 @@ class SchemaChineseCommentContractTest {
List<TableDefinition> baselineTables = assertAllChineseComments(baseline, "基线 SQL", 56);
assertAllChineseComments(incremental, "增量 SQL", 50);
assertAllChineseComments(overseasUnified, "海外统一初始化 SQL", 127);
assertAllChineseComments(overseasUnified, "统一测试初始化 SQL", 126);
assertFalse(overseasUnified.contains("CREATE TABLE ll_security_projection"));
assertFalse(overseasUnified.contains("CREATE TABLE ll_security_event_inbox"));
assertCommentMigrationCovers(incremental, overseasUnified, baselineTables);
}