Skip to content

Commit c4c1d12

Browse files
committed
smoke test
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 21f1622 commit c4c1d12

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

integration-tests/it-spring-boot-smoke-test/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<groupId>io.prometheus</groupId>
1515
<artifactId>it-spring-boot-smoke-test</artifactId>
16-
<version>0.1</version>
16+
<version>1.3.3</version>
1717

1818
<name>Integration Test - Spring Smoke Tests</name>
1919
<description>
@@ -42,7 +42,7 @@
4242
</dependency>
4343
<dependency>
4444
<groupId>org.springframework.boot</groupId>
45-
<artifactId>spring-boot-actuator</artifactId>
45+
<artifactId>spring-boot-starter-actuator</artifactId>
4646
</dependency>
4747
<dependency>
4848
<groupId>io.micrometer</groupId>

integration-tests/it-spring-boot-smoke-test/src/test/java/io/prometheus/metrics/it/springboot/ApplicationTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import io.prometheus.client.it.common.ExporterTest;
44
import io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_28_3.Metrics;
55
import org.junit.jupiter.api.Test;
6+
import org.springframework.boot.test.autoconfigure.actuate.observability.AutoConfigureObservability;
67
import org.springframework.boot.test.context.SpringBootTest;
78

89
import java.io.IOException;
@@ -12,7 +13,8 @@
1213

1314
import static org.assertj.core.api.Assertions.assertThat;
1415

15-
@SpringBootTest
16+
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
17+
@AutoConfigureObservability
1618
class ApplicationTest {
1719
@Test
1820
public void testPrometheusProtobufFormat() throws IOException {

0 commit comments

Comments
 (0)