test(deploy): verify unified TEST and gray environment contracts
This commit is contained in:
+2
-2
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user