Skip to content

Commit f168a4b

Browse files
authored
Merge branch 'main' into bugfix/Allow-configuring-AlwaysPullPolicy
2 parents b9620a0 + d6ff41c commit f168a4b

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

docs/examples/junit4/generic/src/test/java/generic/support/TestSpecificImageNameSubstitutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class TestSpecificImageNameSubstitutor extends ImageNameSubstitutor {
1313
@Override
1414
public DockerImageName apply(final DockerImageName original) {
1515
if (original.equals(DockerImageName.parse("registry.mycompany.com/mirror/mysql:8.0.36"))) {
16-
return DockerImageName.parse("mysql");
16+
return DockerImageName.parse("mysql:8.0.36");
1717
} else {
1818
return original;
1919
}

modules/grafana/build.gradle

Lines changed: 6 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)