chore(outputs.sql): Update ClickHouse Docker image for integration test (#16462)
This commit is contained in:
parent
e839ad17de
commit
cf56e4ab6e
|
|
@ -331,6 +331,9 @@ func TestClickHouseIntegration(t *testing.T) {
|
||||||
t.Skip("Skipping integration test in short mode")
|
t.Skip("Skipping integration test in short mode")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logConfig, err := filepath.Abs("testdata/clickhouse/enable_stdout_log.xml")
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
initdb, err := filepath.Abs("testdata/clickhouse/initdb/init.sql")
|
initdb, err := filepath.Abs("testdata/clickhouse/initdb/init.sql")
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
|
@ -344,16 +347,17 @@ func TestClickHouseIntegration(t *testing.T) {
|
||||||
|
|
||||||
servicePort := "9000"
|
servicePort := "9000"
|
||||||
container := testutil.Container{
|
container := testutil.Container{
|
||||||
Image: "yandex/clickhouse-server",
|
Image: "clickhouse",
|
||||||
ExposedPorts: []string{servicePort, "8123"},
|
ExposedPorts: []string{servicePort, "8123"},
|
||||||
Files: map[string]string{
|
Files: map[string]string{
|
||||||
"/docker-entrypoint-initdb.d/script.sql": initdb,
|
"/docker-entrypoint-initdb.d/script.sql": initdb,
|
||||||
"/out": outDir,
|
"/etc/clickhouse-server/config.d/enable_stdout_log.xml": logConfig,
|
||||||
|
"/out": outDir,
|
||||||
},
|
},
|
||||||
WaitingFor: wait.ForAll(
|
WaitingFor: wait.ForAll(
|
||||||
wait.NewHTTPStrategy("/").WithPort(nat.Port("8123")),
|
wait.NewHTTPStrategy("/").WithPort(nat.Port("8123")),
|
||||||
wait.ForListeningPort(nat.Port(servicePort)),
|
wait.ForListeningPort(nat.Port(servicePort)),
|
||||||
wait.ForLog("Saved preprocessed configuration to '/var/lib/clickhouse/preprocessed_configs/users.xml'").WithOccurrence(2),
|
wait.ForLog("Ready for connections"),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
err = container.Start()
|
err = container.Start()
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
<clickhouse>
|
||||||
|
<logger>
|
||||||
|
<console>1</console>
|
||||||
|
</logger>
|
||||||
|
</clickhouse>
|
||||||
Loading…
Reference in New Issue