优化
This commit is contained in:
@@ -60,6 +60,7 @@ springdoc:
|
||||
urls:
|
||||
- { name: lastleg-merchant, url: /lastleg-service/v3/api-docs/merchant }
|
||||
- { name: lastleg-platform, url: /lastleg-service/v3/api-docs/platform }
|
||||
- { name: lastleg-pda, url: /lastleg-service/v3/api-docs/pda }
|
||||
- { name: warehouse-merchant, url: /warehouse-overseas-service/v3/api-docs/merchant }
|
||||
- { name: warehouse-platform, url: /warehouse-overseas-service/v3/api-docs/platform }
|
||||
- { name: file-platform, url: /file-service/v3/api-docs/platform }
|
||||
|
||||
+11
@@ -27,4 +27,15 @@ class OverseasLastlegRouteContractTest {
|
||||
.doesNotContain("StripPrefix", "RewritePath");
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void swaggerPublishesAnIndependentLastlegPdaGroup() throws IOException {
|
||||
try (InputStream input = getClass().getResourceAsStream("/application-overseas.yml")) {
|
||||
assertThat(input).isNotNull();
|
||||
String yaml = new String(input.readAllBytes(), StandardCharsets.UTF_8);
|
||||
assertThat(yaml).contains("name: lastleg-pda", "url: /lastleg-service/v3/api-docs/pda")
|
||||
.contains("Path=/lastleg-service/v3/api-docs/**")
|
||||
.doesNotContain("event-bridge-service/v3/api-docs/pda");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user