From 169c1f9add94bb7084dcf9881e39a8b85b230925 Mon Sep 17 00:00:00 2001 From: j-sandy <30489233+j-sandy@users.noreply.github.com> Date: Mon, 5 Feb 2024 13:28:16 +0530 Subject: [PATCH] fix(test): Update swagger-ui endpoint with springfox 3.0.0 upgrade With upgrade of springfox from 2.9.2 to 3.0.0, a breaking [change](http://springfox.github.io/springfox/docs/current/#changes-in-swagger-ui) has been introduced in the form of new endpoint for swagger-ui (/swagger-ui/index.html). This change caused the `SwaggerTest.swaggerUiIsPresent` test to fail. In order to fix this test, updating the swagger-ui endpoint as `/swagger-ui/index.html`. --- .../src/test/java/com/netflix/kayenta/tests/SwaggerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kayenta-integration-tests/src/test/java/com/netflix/kayenta/tests/SwaggerTest.java b/kayenta-integration-tests/src/test/java/com/netflix/kayenta/tests/SwaggerTest.java index 5a84c94ec..e15ddf4a0 100644 --- a/kayenta-integration-tests/src/test/java/com/netflix/kayenta/tests/SwaggerTest.java +++ b/kayenta-integration-tests/src/test/java/com/netflix/kayenta/tests/SwaggerTest.java @@ -25,7 +25,7 @@ public class SwaggerTest extends BaseIntegrationTest { public void swaggerUiIsPresent() { RestAssured.given() .port(serverPort) - .get("/swagger-ui.html") + .get("/swagger-ui/index.html") .prettyPeek() .then() .assertThat()