File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments