diff --git a/integration-tests/it-exporter/it-exporter-test/pom.xml b/integration-tests/it-exporter/it-exporter-test/pom.xml index 40ee58412..9620db370 100644 --- a/integration-tests/it-exporter/it-exporter-test/pom.xml +++ b/integration-tests/it-exporter/it-exporter-test/pom.xml @@ -29,5 +29,36 @@ ${guava.version} test + + + io.prometheus + it-exporter-servlet-tomcat-sample + ${project.version} + test + + + io.prometheus + it-exporter-servlet-jetty-sample + ${project.version} + test + + + io.prometheus + it-exporter-httpserver-sample + ${project.version} + test + + + io.prometheus + it-exporter-duplicate-metrics-sample + ${project.version} + test + diff --git a/integration-tests/it-exporter/it-no-protobuf-test/pom.xml b/integration-tests/it-exporter/it-no-protobuf-test/pom.xml index 389867de5..313cefe7b 100644 --- a/integration-tests/it-exporter/it-no-protobuf-test/pom.xml +++ b/integration-tests/it-exporter/it-no-protobuf-test/pom.xml @@ -23,5 +23,18 @@ ${project.version} test + + + io.prometheus + it-exporter-no-protobuf + ${project.version} + test + diff --git a/integration-tests/it-spring-boot-smoke-test/pom.xml b/integration-tests/it-spring-boot-smoke-test/pom.xml index 6c0f92357..11afc50b6 100644 --- a/integration-tests/it-spring-boot-smoke-test/pom.xml +++ b/integration-tests/it-spring-boot-smoke-test/pom.xml @@ -56,6 +56,22 @@ micrometer-registry-prometheus runtime + + + io.prometheus + prometheus-metrics-core + runtime + + + io.prometheus + prometheus-metrics-tracer-initializer + + + org.springframework.boot spring-boot-starter-test diff --git a/prometheus-metrics-exporter-opentelemetry/src/test/java/io/prometheus/metrics/exporter/opentelemetry/ExemplarTest.java b/prometheus-metrics-exporter-opentelemetry/src/test/java/io/prometheus/metrics/exporter/opentelemetry/ExemplarTest.java index c21f1ead4..c764f3e83 100644 --- a/prometheus-metrics-exporter-opentelemetry/src/test/java/io/prometheus/metrics/exporter/opentelemetry/ExemplarTest.java +++ b/prometheus-metrics-exporter-opentelemetry/src/test/java/io/prometheus/metrics/exporter/opentelemetry/ExemplarTest.java @@ -13,6 +13,7 @@ import static org.awaitility.Awaitility.await; import com.github.tomakehurst.wiremock.http.Request; +import com.github.tomakehurst.wiremock.junit5.WireMockRuntimeInfo; import com.github.tomakehurst.wiremock.junit5.WireMockTest; import com.github.tomakehurst.wiremock.matching.MatchResult; import com.github.tomakehurst.wiremock.matching.ValueMatcher; @@ -34,7 +35,7 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -@WireMockTest(httpPort = 4317) +@WireMockTest class ExemplarTest { private static final String ENDPOINT_PATH = "/v1/metrics"; private static final int TIMEOUT = 3; @@ -45,10 +46,10 @@ class ExemplarTest { private OpenTelemetryExporter openTelemetryExporter; @BeforeEach - void setUp() { + void setUp(WireMockRuntimeInfo wireMockRuntimeInfo) { openTelemetryExporter = OpenTelemetryExporter.builder() - .endpoint("http://localhost:4317") + .endpoint(wireMockRuntimeInfo.getHttpBaseUrl()) .protocol("http/protobuf") .intervalSeconds(1) .buildAndStart();