test(deploy): verify unified TEST and gray environment contracts

This commit is contained in:
2026-10-07 11:17:28 +08:00
parent ec0c06ff88
commit 7ff6512864
4 changed files with 18 additions and 8 deletions
@@ -74,7 +74,7 @@ class Phase4BrowserApiBoundaryTest {
}
@Test
void lastlegReachesPrintThroughTheUnifiedTestNetwork() throws Exception {
void lastlegReachesPrintThroughTheUnifiedEnvironmentNetwork() throws Exception {
Path composePath = Path.of("deploy/docker-compose.yml");
if (!Files.exists(composePath)) composePath = Path.of("..").resolve(composePath);
String compose = Files.readString(composePath);
@@ -83,7 +83,7 @@ class Phase4BrowserApiBoundaryTest {
assertTrue(lastleg.contains("<<: *common-environment"));
assertTrue(lastleg.contains("PRINT_SERVICE_URL: ${PRINT_SERVICE_URL:-http://print:9207}"));
assertTrue(compose.contains("networks: [firstleg-network, infra-network]"));
assertTrue(compose.contains("name: firstleg-test-network"));
assertTrue(compose.contains("name: firstleg-${DEPLOY_ENV:-test}-network"));
assertFalse(lastleg.contains("ports:"));
assertFalse(compose.contains("gateway-overseas"));
}