Skip to content

Commit 910e7f5

Browse files
Fix typo in LGTM container method (#10189)
Co-authored-by: Eddú Meléndez <[email protected]>
1 parent e730674 commit 910e7f5

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

modules/grafana/build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ dependencies {
88
testImplementation 'io.micrometer:micrometer-registry-otlp:1.13.4'
99
testImplementation 'uk.org.webcompere:system-stubs-junit4:2.1.6'
1010
}
11+
12+
tasks.japicmp {
13+
methodExcludes = [
14+
"org.testcontainers.grafana.LgtmStackContainer#getPromehteusHttpUrl()"
15+
]
16+
}

modules/grafana/src/main/java/org/testcontainers/grafana/LgtmStackContainer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public String getOtlpHttpUrl() {
5858
return "http://" + getHost() + ":" + getMappedPort(OTLP_HTTP_PORT);
5959
}
6060

61-
public String getPromehteusHttpUrl() {
61+
public String getPrometheusHttpUrl() {
6262
return "http://" + getHost() + ":" + getMappedPort(PROMETHEUS_PORT);
6363
}
6464

modules/grafana/src/test/java/org/testcontainers/grafana/LgtmStackContainerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void shouldPublishMetric() throws Exception {
4646
Response response = RestAssured
4747
.given()
4848
.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()))
5050
.prettyPeek()
5151
.thenReturn();
5252
assertThat(response.getStatusCode()).isEqualTo(200);

0 commit comments

Comments
 (0)