|
|
|
@ -229,8 +229,7 @@ public class GatewayControllerEndpointTests {
@@ -229,8 +229,7 @@ public class GatewayControllerEndpointTests {
|
|
|
|
|
|
|
|
|
|
testClient.post().uri("http://localhost:" + port + "/actuator/gateway/routes/no-scheme-test-route") |
|
|
|
|
.accept(MediaType.APPLICATION_JSON).body(BodyInserters.fromValue(testRouteDefinition)).exchange() |
|
|
|
|
.expectStatus().isBadRequest().expectBody().jsonPath("$.message") |
|
|
|
|
.isEqualTo("The URI can not be empty"); |
|
|
|
|
.expectStatus().isBadRequest().expectBody().jsonPath("$.message").isEqualTo("The URI can not be empty"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|