File tree 3 files changed +8
-2
lines changed
main/java/org/testcontainers/grafana
test/java/org/testcontainers/grafana
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,9 @@ dependencies {
8
8
testImplementation ' io.micrometer:micrometer-registry-otlp:1.13.4'
9
9
testImplementation ' uk.org.webcompere:system-stubs-junit4:2.1.6'
10
10
}
11
+
12
+ tasks. japicmp {
13
+ methodExcludes = [
14
+ " org.testcontainers.grafana.LgtmStackContainer#getPromehteusHttpUrl()"
15
+ ]
16
+ }
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public String getOtlpHttpUrl() {
58
58
return "http://" + getHost () + ":" + getMappedPort (OTLP_HTTP_PORT );
59
59
}
60
60
61
- public String getPromehteusHttpUrl () {
61
+ public String getPrometheusHttpUrl () {
62
62
return "http://" + getHost () + ":" + getMappedPort (PROMETHEUS_PORT );
63
63
}
64
64
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public void shouldPublishMetric() throws Exception {
46
46
Response response = RestAssured
47
47
.given ()
48
48
.queryParam ("query" , "test_counter_total{job=\" testcontainers\" }" )
49
- .get (String .format ("%s/api/v1/query" , lgtm .getPromehteusHttpUrl ()))
49
+ .get (String .format ("%s/api/v1/query" , lgtm .getPrometheusHttpUrl ()))
50
50
.prettyPeek ()
51
51
.thenReturn ();
52
52
assertThat (response .getStatusCode ()).isEqualTo (200 );
You can’t perform that action at this time.
0 commit comments