Skip to content

Commit

Permalink
Setting password differently
Browse files Browse the repository at this point in the history
  • Loading branch information
Paultagoras committed Feb 4, 2025
1 parent 32da732 commit 4d987fb
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 @@ -34,7 +34,7 @@ public static void setup() throws IOException {
initialPing();
return;
}
db = new ClickHouseContainer(ClickHouseTestHelpers.CLICKHOUSE_DOCKER_IMAGE).withEnv("CLICKHOUSE_PASSWORD", "test_password");
db = new ClickHouseContainer(ClickHouseTestHelpers.CLICKHOUSE_DOCKER_IMAGE).withPassword("test_password");
db.start();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void setup() throws IOException {
db = new ClickHouseContainer(ClickHouseTestHelpers.CLICKHOUSE_FOR_PROXY_DOCKER_IMAGE)
.withNetwork(network)
.withNetworkAliases("clickhouse")
.withEnv("CLICKHOUSE_PASSWORD", "test_password");
.withPassword("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 @@ -42,7 +42,7 @@ public static void setup() throws IOException {
db = new org.testcontainers.clickhouse.ClickHouseContainer(ClickHouseTestHelpers.CLICKHOUSE_FOR_PROXY_DOCKER_IMAGE)
.withNetwork(network)
.withNetworkAliases("clickhouse")
.withEnv("CLICKHOUSE_PASSWORD", "test_password");
.withPassword("test_password");
db.start();

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

0 comments on commit 4d987fb

Please sign in to comment.