Skip to content

Commit 440ddf7

Browse files
authored
ci: set login credentials for clickhouse test (#413)
1 parent 729f50b commit 440ddf7

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

wrappers/.ci/docker-compose-native.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@ services:
3030
ports:
3131
- "9000:9000" # native interface
3232
- "8123:8123" # http interface
33+
environment:
34+
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1
35+
CLICKHOUSE_USER: default
36+
CLICKHOUSE_PASSWORD: default
37+
CLICKHOUSE_DB: default
3338
healthcheck:
34-
test: sleep 4 && wget --no-verbose --tries=1 --spider http://localhost:8123/?query=SELECT%201 || exit 1
39+
test: sleep 4 && wget --no-verbose --tries=1 --spider http://default:default@127.0.0.1:8123/?query=SELECT%201 || exit 1
3540
interval: 10s
3641
timeout: 5s
3742
retries: 20

wrappers/src/fdw/clickhouse_fdw/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ mod tests {
99
#[pg_test]
1010
fn clickhouse_smoketest() {
1111
Spi::connect(|mut c| {
12-
let clickhouse_pool = ch::Pool::new("tcp://default:@localhost:9000/default");
12+
let clickhouse_pool = ch::Pool::new("tcp://default:default@localhost:9000/default");
1313

1414
let rt = create_async_runtime().expect("failed to create runtime");
1515
let mut handle = rt
@@ -37,7 +37,7 @@ mod tests {
3737
r#"CREATE SERVER my_clickhouse_server
3838
FOREIGN DATA WRAPPER clickhouse_wrapper
3939
OPTIONS (
40-
conn_string 'tcp://default:@localhost:9000/default'
40+
conn_string 'tcp://default:default@localhost:9000/default'
4141
)"#,
4242
None,
4343
None,

0 commit comments

Comments
 (0)