diff --git a/plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestingClickHouseServer.java b/plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestingClickHouseServer.java index 36144a1c0983..7bf507169145 100644 --- a/plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestingClickHouseServer.java +++ b/plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestingClickHouseServer.java @@ -22,6 +22,7 @@ import static java.lang.String.format; import static org.testcontainers.containers.ClickHouseContainer.HTTP_PORT; +import static org.testcontainers.utility.MountableFile.forClasspathResource; public class TestingClickHouseServer implements Closeable @@ -33,6 +34,7 @@ public TestingClickHouseServer() { // Use 2nd stable version dockerContainer = (ClickHouseContainer) new ClickHouseContainer(CLICKHOUSE_IMAGE) + .withCopyFileToContainer(forClasspathResource("custom.xml"), "/etc/clickhouse-server/config.d/custom.xml") .withStartupAttempts(10); dockerContainer.start(); diff --git a/plugin/trino-clickhouse/src/test/resources/custom.xml b/plugin/trino-clickhouse/src/test/resources/custom.xml new file mode 100644 index 000000000000..f4fa0e8b59d5 --- /dev/null +++ b/plugin/trino-clickhouse/src/test/resources/custom.xml @@ -0,0 +1,5 @@ + + + + 10 +