This commit is contained in:
2026-08-08 14:17:06 +08:00
parent 87508bba82
commit 87c1bfbb71
9 changed files with 267 additions and 11 deletions
+5 -1
View File
@@ -46,6 +46,10 @@ spring:
uri: lb://auth-service
predicates:
- Path=/api/auth/**
- id: warehouse-customer-overseas-fees
uri: lb://warehouse-service
predicates:
- Path=/api/platform/v1/iam/tenants/{tenantId}/overseas-storage-fees,/api/platform/v1/iam/tenants/{tenantId}/overseas-storage-fees/**
- id: iam-service
uri: lb://iam-service
predicates:
@@ -73,7 +77,7 @@ spring:
- id: firstleg-service
uri: lb://firstleg-service
predicates:
- Path=/api/merchant/v1/first-leg/**,/api/platform/v1/first-leg/**,/api/platform/v1/containers/**,/api/platform/v1/fba-pricing/**,/api/platform/v1/inbounds/**,/api/platform/v1/fee-items/**,/api/platform/inbounds/**,/openapi/v1/inbound-measurements/**
- Path=/api/merchant/v1/first-leg/**,/api/platform/v1/first-leg/**,/api/platform/v1/containers/**,/api/platform/v1/ocean-bookings/**,/api/platform/v1/truck-appointments/**,/api/platform/v1/fba-pricing/**,/api/platform/v1/inbounds/**,/api/platform/v1/fee-items/**,/api/platform/inbounds/**,/openapi/v1/inbound-measurements/**
# Swagger 文档聚合路由。
- id: auth-openapi
uri: lb://auth-service
@@ -15,4 +15,14 @@ class FirstlegContainerRouteContractTest {
assertThat(yaml).contains("/api/platform/v1/containers/**");
}
@Test
void routesOceanBookingsAndTruckAppointments() throws Exception {
String yaml = new ClassPathResource("application.yml")
.getContentAsString(StandardCharsets.UTF_8);
assertThat(yaml)
.contains("/api/platform/v1/ocean-bookings/**")
.contains("/api/platform/v1/truck-appointments/**");
}
}