Skip to content

Commit

Permalink
fixup! [UPGRADE] - Maven org.testcontainers 1.17.6 -> 1.18.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vttranlina committed Jul 20, 2023
1 parent 5c342da commit 035ebf0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void waitUntilReady(WaitStrategyTarget waitStrategyTarget) {
Unreliables.retryUntilTrue(Ints.checkedCast(timeout.getSeconds()), TimeUnit.SECONDS, () -> {
try {
ClusterFactory.createWithoutKeyspace(ClusterConfiguration.builder()
.host(Host.from(cassandraContainer.getContainerIpAddress(), cassandraContainer.getMappedPort(9042)))
.host(Host.from(cassandraContainer.getHost(), cassandraContainer.getMappedPort(9042)))
.username("cassandra")
.password("cassandra")
.maxRetry(1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public Host getHost() {
}

public String getIp() {
return cassandraContainer.getContainerIpAddress();
return cassandraContainer.getHost();
}

public int getBindingPort() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private String hostName(Optional<String> hostNamePrefix) {
}

private String getHostIp() {
return container.getContainerIpAddress();
return container.getHost();
}

private Integer getPort() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public String getContainerIp() {
}

public String getHostIp() {
return container.getContainerIpAddress();
return container.getHost();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public int getPort() {
}

public String getIp() {
return linshareBackend.getContainerIpAddress();
return linshareBackend.getHost();
}

public String getUrl() {
Expand Down Expand Up @@ -182,7 +182,7 @@ public RequestSpecification fakeSmtpRequestSpecification() {
.setAccept(ContentType.JSON)
.setConfig(newConfig().encoderConfig(encoderConfig().defaultContentCharset(StandardCharsets.UTF_8)))
.setPort(linshareSmtp.getMappedPort(80))
.setBaseUri("http://" + linshareSmtp.getContainerIpAddress())
.setBaseUri("http://" + linshareSmtp.getHost())
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static class SpamAssassin {

private SpamAssassin(GenericContainer<?> spamAssassinContainer) {
this.spamAssassinContainer = spamAssassinContainer;
this.ip = spamAssassinContainer.getContainerIpAddress();
this.ip = spamAssassinContainer.getHost();
this.bindingPort = spamAssassinContainer.getMappedPort(SPAMASSASSIN_PORT);
}

Expand Down

0 comments on commit 035ebf0

Please sign in to comment.