Skip to content

Commit

Permalink
Verify warning log message when a build time property is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo gonzalez granados committed Jun 15, 2022
1 parent e3250cf commit b7ae3eb
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,21 @@ public void shouldDetectChanges() {
() -> app.given().get("/hello").then().statusCode(HttpStatus.SC_OK)
.body("content", is(String.format(HELLO_IN_SPANISH, WORLD))));
}

@Test
@Tag("QUARKUS-2112")
public void verifyWarningLogWhenBuildPropertyIsUpdated() {
String appName = app.getProperty("quarkus.application.name", "test-http");
String newAppName = "new-test-app";
app.given()
.param("action", "updateProperty")
.param("name", "quarkus.application.name")
.param("value", newAppName)
.post("/q/dev/io.quarkus.quarkus-vertx-http/config")
.then().statusCode(200);

String expectedOutput = String.format("quarkus.application.name is set to '%s' but it is build time fixed to '%s'",
appName, newAppName);
app.logs().assertContains(expectedOutput);
}
}

0 comments on commit b7ae3eb

Please sign in to comment.