From 31d40667a61095e88e635d8f0ae724f2691d98c3 Mon Sep 17 00:00:00 2001 From: jcarranzan Date: Thu, 13 Jun 2024 15:59:03 +0200 Subject: [PATCH] add tag and remove property not needed from RestService --- .../ts/micrometer/prometheus/HttpPathMetricsPatternIT.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/monitoring/micrometer-prometheus/src/test/java/io/quarkus/ts/micrometer/prometheus/HttpPathMetricsPatternIT.java b/monitoring/micrometer-prometheus/src/test/java/io/quarkus/ts/micrometer/prometheus/HttpPathMetricsPatternIT.java index 7ad120759b..2af6fb5c0d 100644 --- a/monitoring/micrometer-prometheus/src/test/java/io/quarkus/ts/micrometer/prometheus/HttpPathMetricsPatternIT.java +++ b/monitoring/micrometer-prometheus/src/test/java/io/quarkus/ts/micrometer/prometheus/HttpPathMetricsPatternIT.java @@ -9,12 +9,14 @@ import java.util.concurrent.TimeUnit; import org.apache.http.HttpStatus; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import io.quarkus.test.bootstrap.RestService; import io.quarkus.test.scenarios.QuarkusScenario; import io.quarkus.test.services.QuarkusApplication; +@Tag("QUARKUS-4430") @QuarkusScenario public class HttpPathMetricsPatternIT { @@ -28,8 +30,7 @@ public class HttpPathMetricsPatternIT { private static final String EMPTY_ENDPOINT = "/test"; @QuarkusApplication - static RestService app = new RestService() - .withProperty("quarkus.management.enabled", "true"); + static RestService app = new RestService(); @Test public void verifyNotFoundInMetrics() { @@ -99,7 +100,7 @@ private void whenCallDynamicSegmentEndpoint(String id) { private void thenMetricIsExposedInServiceEndpoint(int statusCode, String outcome, String uri) { await().ignoreExceptions().atMost(ASSERT_METRICS_TIMEOUT_SECONDS, TimeUnit.SECONDS).untilAsserted(() -> { - String metrics = app.management().get("/q/metrics").then() + String metrics = app.given().get("/q/metrics").then() .statusCode(HttpStatus.SC_OK).extract().asString(); for (String metricSuffix : HTTP_SERVER_REQUESTS_METRICS_SUFFIX) { String metric = String.format(HTTP_SERVER_REQUESTS_METRICS_FORMAT, metricSuffix, outcome, statusCode, uri);