feat(phase4): automate overseas PDA inbound lifecycle
This commit is contained in:
+3
-1
@@ -10,7 +10,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
class OverseasLastlegRouteContractTest {
|
||||
@Test
|
||||
void platformDispatchPathIsForwardedToLastlegWithoutPrefixRewrite() throws IOException {
|
||||
void browserAndPdaPathsAreForwardedToLastlegWithoutPrefixRewrite() throws IOException {
|
||||
try (InputStream input = getClass().getResourceAsStream("/application-overseas.yml")) {
|
||||
assertThat(input).isNotNull();
|
||||
String yaml = new String(input.readAllBytes(), StandardCharsets.UTF_8);
|
||||
@@ -22,6 +22,8 @@ class OverseasLastlegRouteContractTest {
|
||||
|
||||
assertThat(route).contains("uri: lb://lastleg-service")
|
||||
.contains("/api/platform/v1/last-leg/**")
|
||||
.contains("/api/merchant/v1/last-leg/**")
|
||||
.contains("/api/pda/v1/last-leg/**")
|
||||
.doesNotContain("StripPrefix", "RewritePath");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user