完成单机TEST统一入口与可靠投递回归收尾
This commit is contained in:
+10
-3
@@ -73,11 +73,18 @@ class Phase4BrowserApiBoundaryTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
void overseasLastlegReachesDomesticPrintThroughSharedInfrastructureNetwork() throws Exception {
|
||||
Path composePath = Path.of("deploy/docker-compose.overseas.yml");
|
||||
void lastlegReachesPrintThroughTheUnifiedTestNetwork() throws Exception {
|
||||
Path composePath = Path.of("deploy/docker-compose.yml");
|
||||
if (!Files.exists(composePath)) composePath = Path.of("..").resolve(composePath);
|
||||
String compose = Files.readString(composePath);
|
||||
assertTrue(compose.contains("PRINT_SERVICE_URL: ${PRINT_SERVICE_URL:-http://print:9207}"));
|
||||
String lastleg = compose.substring(compose.indexOf(" lastleg-service:"), compose.indexOf(" warehouse-overseas-service:"));
|
||||
assertTrue(lastleg.contains("<<: *common"));
|
||||
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"));
|
||||
assertFalse(lastleg.contains("ports:"));
|
||||
assertFalse(compose.contains("gateway-overseas"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user