Skip to content

Commit

Permalink
[hotfix] Remove deprecated testcontainers API usages
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol committed Nov 2, 2022
1 parent 59137cb commit 39f616e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public KinesaliteContainer(DockerImageName imageName) {

/** Returns the endpoint url to access the container from outside the docker network. */
public String getContainerEndpointUrl() {
return String.format(URL_FORMAT, getContainerIpAddress(), getMappedPort(PORT));
return String.format(URL_FORMAT, getHost(), getMappedPort(PORT));
}

/** Returns the endpoint url to access the host from inside the docker network. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ protected void configure() {
}

public String getSchemaRegistryUrl() {
return "http://" + getContainerIpAddress() + ":" + getMappedPort(8082);
return "http://" + getHost() + ":" + getMappedPort(8082);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public AmazonS3 getClient() {
}

private String getHttpEndpoint() {
return String.format("http://%s:%s", getContainerIpAddress(), getMappedPort(DEFAULT_PORT));
return String.format("http://%s:%s", getHost(), getMappedPort(DEFAULT_PORT));
}

/**
Expand Down

0 comments on commit 39f616e

Please sign in to comment.