fix: connect overseas lastleg to print service

This commit is contained in:
2026-09-11 10:24:08 +08:00
parent 220d159cec
commit b2f85501ac
2 changed files with 10 additions and 0 deletions
@@ -72,6 +72,14 @@ class Phase4BrowserApiBoundaryTest {
assertTrue(yaml.contains("enabled: ${LASTLEG_SMART_DISPATCH_API_ENABLED:true}"));
}
@Test
void overseasLastlegReachesDomesticPrintThroughSharedInfrastructureNetwork() throws Exception {
Path composePath = Path.of("deploy/docker-compose.overseas.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}"));
}
@Test
void smartDispatchOnlyExposesCandidatePreArrangeAndDraftLifecycleEndpoints() {
ConditionalOnProperty condition = SmartDispatchController.class.getAnnotation(ConditionalOnProperty.class);