@@ -62,7 +62,11 @@ func testS3Storage(ctx context.Context, t *testing.T, clickhouseContainer testco
62
62
63
63
runMainTestScenario (ctx , t , clickhouseContainer , []string {
64
64
"--storage-type" , "s3" ,
65
- "--storage-config" , fmt .Sprintf ("bucket=testbucket,region=us-east-1,endpoint=http://%s:%s" , minioHost , minioPort .Port ()),
65
+ "--storage-bucket" , "testbucket" ,
66
+ "--storage-region" , "us-east-1" ,
67
+ "--storage-path" , "" ,
68
+ "--host" , minioHost ,
69
+ "--port" , minioPort .Port (),
66
70
})
67
71
}
68
72
@@ -116,7 +120,10 @@ func testGCSStorage(ctx context.Context, t *testing.T, clickhouseContainer testc
116
120
117
121
runMainTestScenario (ctx , t , clickhouseContainer , []string {
118
122
"--storage-type" , "gcs" ,
119
- "--storage-config" , fmt .Sprintf ("bucket=testbucket,endpoint=http://%s:%s" , gcsHost , gcsPort .Port ()),
123
+ "--storage-bucket" , "testbucket" ,
124
+ "--storage-path" , "" ,
125
+ "--host" , gcsHost ,
126
+ "--port" , gcsPort .Port (),
120
127
})
121
128
}
122
129
@@ -135,7 +142,12 @@ func testAzureBlobStorage(ctx context.Context, t *testing.T, clickhouseContainer
135
142
136
143
runMainTestScenario (ctx , t , clickhouseContainer , []string {
137
144
"--storage-type" , "azblob" ,
138
- "--storage-config" , fmt .Sprintf ("account=devstoreaccount1,key=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==,container=testcontainer,endpoint=http://%s:%s/devstoreaccount1" , azuriteHost , azuritePort .Port ()),
145
+ "--storage-account" , "devstoreaccount1" ,
146
+ "--storage-key" , "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==" ,
147
+ "--storage-container" , "testcontainer" ,
148
+ "--storage-path" , "" ,
149
+ "--host" , azuriteHost ,
150
+ "--port" , azuritePort .Port (),
139
151
})
140
152
}
141
153
@@ -154,7 +166,10 @@ func testFTPStorage(ctx context.Context, t *testing.T, clickhouseContainer testc
154
166
155
167
runMainTestScenario (ctx , t , clickhouseContainer , []string {
156
168
"--storage-type" , "ftp" ,
157
- "--storage-config" , fmt .Sprintf ("host=%s:%s,user=testuser,password=testpass" , ftpHost , ftpPort .Port ()),
169
+ "--storage-host" , fmt .Sprintf ("%s:%s" , ftpHost , ftpPort .Port ()),
170
+ "--storage-user" , "testuser" ,
171
+ "--storage-password" , "testpass" ,
172
+ "--storage-path" , "" ,
158
173
})
159
174
}
160
175
@@ -173,7 +188,10 @@ func testSFTPStorage(ctx context.Context, t *testing.T, clickhouseContainer test
173
188
174
189
runMainTestScenario (ctx , t , clickhouseContainer , []string {
175
190
"--storage-type" , "sftp" ,
176
- "--storage-config" , fmt .Sprintf ("host=%s:%s,user=testuser,password=testpass" , sftpHost , sftpPort .Port ()),
191
+ "--storage-host" , fmt .Sprintf ("%s:%s" , sftpHost , sftpPort .Port ()),
192
+ "--storage-user" , "testuser" ,
193
+ "--storage-password" , "testpass" ,
194
+ "--storage-path" , "" ,
177
195
})
178
196
}
179
197
0 commit comments