Skip to content

Commit

Permalink
Merge pull request #45700 from alesj/lgtm_reload_prop
Browse files Browse the repository at this point in the history
Add props change to LGTM re-load test
  • Loading branch information
geoand authored Jan 20, 2025
2 parents 9104473 + 3cc5e07 commit cc10bd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ public class LgtmReloadTest extends LgtmTestHelper {

@RegisterExtension
static final QuarkusDevModeTest test = new QuarkusDevModeTest()
.withApplicationRoot((jar) -> jar.addClasses(ReloadEndpoint.class, ConfigEndpoint.class));
.withApplicationRoot(
jar -> jar.addClasses(ReloadEndpoint.class, ConfigEndpoint.class)
.addAsResource("application.properties",
"application.properties"));

@Override
protected String grafanaEndpoint() {
Expand All @@ -32,5 +35,7 @@ public void testReload() {
poke("/reload");
test.modifySourceFile(ReloadEndpoint.class, s -> s.replace("/reload", "/new"));
poke("/new");
test.modifyResourceFile("application.properties", s -> s.replace("timeout=PT1M", "timeout=PT2M"));
poke("/new");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ quarkus.log.category."io.quarkus.devservices".level=DEBUG
quarkus.micrometer.export.otlp.enabled=true
quarkus.micrometer.export.otlp.publish=true
quarkus.micrometer.export.otlp.step=PT5S

quarkus.observability.lgtm.timeout=PT1M

0 comments on commit cc10bd9

Please sign in to comment.