Skip to content

Commit

Permalink
fix(test): Update swagger-ui endpoint with springfox 3.0.0 upgrade
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
j-sandy authored and dbyron-sf committed Feb 5, 2024
1 parent d73ec14 commit 169c1f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 169c1f9

Please sign in to comment.