Skip to content

Commit

Permalink
Add a configured password
Browse files Browse the repository at this point in the history
  • Loading branch information
Paultagoras committed Feb 4, 2025
1 parent 94091c4 commit 32da732
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static void setup() throws IOException {
initialPing();
return;
}
db = new ClickHouseContainer(ClickHouseTestHelpers.CLICKHOUSE_DOCKER_IMAGE);
db = new ClickHouseContainer(ClickHouseTestHelpers.CLICKHOUSE_DOCKER_IMAGE).withEnv("CLICKHOUSE_PASSWORD", "test_password");
db.start();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ public class ClickHouseSinkTaskSchemalessProxyTest extends ClickHouseBase {
public static void setup() throws IOException {
Network network = Network.newNetwork();
// Note: we are using a different version of ClickHouse for the proxy - https://github.com/ClickHouse/ClickHouse/issues/58828
db = new ClickHouseContainer(ClickHouseTestHelpers.CLICKHOUSE_FOR_PROXY_DOCKER_IMAGE).withNetwork(network).withNetworkAliases("clickhouse");
db = new ClickHouseContainer(ClickHouseTestHelpers.CLICKHOUSE_FOR_PROXY_DOCKER_IMAGE)
.withNetwork(network)
.withNetworkAliases("clickhouse")
.withEnv("CLICKHOUSE_PASSWORD", "test_password");
db.start();

toxiproxy = new ToxiproxyContainer("ghcr.io/shopify/toxiproxy:2.7.0").withNetwork(network).withNetworkAliases("toxiproxy");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ public class ClickHouseSinkTaskWithSchemaProxyTest extends ClickHouseBase {
public static void setup() throws IOException {
Network network = Network.newNetwork();
// Note: we are using a different version of ClickHouse for the proxy - https://github.com/ClickHouse/ClickHouse/issues/58828
db = new org.testcontainers.clickhouse.ClickHouseContainer(ClickHouseTestHelpers.CLICKHOUSE_FOR_PROXY_DOCKER_IMAGE).withNetwork(network).withNetworkAliases("clickhouse");
db = new org.testcontainers.clickhouse.ClickHouseContainer(ClickHouseTestHelpers.CLICKHOUSE_FOR_PROXY_DOCKER_IMAGE)
.withNetwork(network)
.withNetworkAliases("clickhouse")
.withEnv("CLICKHOUSE_PASSWORD", "test_password");
db.start();

toxiproxy = new ToxiproxyContainer("ghcr.io/shopify/toxiproxy:2.7.0").withNetwork(network).withNetworkAliases("toxiproxy");
Expand Down

0 comments on commit 32da732

Please sign in to comment.