@@ -197,13 +197,14 @@ func TestGetBucketSessionInfo(t *testing.T) {
197197 expectedSessionInfo : objectstore.SessionInfo {
198198 Provider : "minio" ,
199199 Params : map [string ]string {
200- "region" : "minio" ,
201- "endpoint" : "minio-endpoint-5.com" ,
202- "disableSSL" : "true" ,
203- "fromEnv" : "false" ,
204- "secretName" : "test-secret-5" ,
205- "accessKeyKey" : "test-accessKeyKey-5" ,
206- "secretKeyKey" : "test-secretKeyKey-5" ,
200+ "region" : "minio" ,
201+ "endpoint" : "minio-endpoint-5.com" ,
202+ "disableSSL" : "true" ,
203+ "fromEnv" : "false" ,
204+ "secretName" : "test-secret-5" ,
205+ "accessKeyKey" : "test-accessKeyKey-5" ,
206+ "secretKeyKey" : "test-secretKeyKey-5" ,
207+ "forcePathStyle" : "true" ,
207208 },
208209 },
209210 testDataCase : "case5" ,
@@ -214,13 +215,14 @@ func TestGetBucketSessionInfo(t *testing.T) {
214215 expectedSessionInfo : objectstore.SessionInfo {
215216 Provider : "minio" ,
216217 Params : map [string ]string {
217- "region" : "minio-a" ,
218- "endpoint" : "minio-endpoint-6.com" ,
219- "disableSSL" : "true" ,
220- "fromEnv" : "false" ,
221- "secretName" : "minio-test-secret-6-a" ,
222- "accessKeyKey" : "minio-test-accessKeyKey-6-a" ,
223- "secretKeyKey" : "minio-test-secretKeyKey-6-a" ,
218+ "region" : "minio-a" ,
219+ "endpoint" : "minio-endpoint-6.com" ,
220+ "disableSSL" : "true" ,
221+ "fromEnv" : "false" ,
222+ "secretName" : "minio-test-secret-6-a" ,
223+ "accessKeyKey" : "minio-test-accessKeyKey-6-a" ,
224+ "secretKeyKey" : "minio-test-secretKeyKey-6-a" ,
225+ "forcePathStyle" : "true" ,
224226 },
225227 },
226228 testDataCase : "case6" ,
@@ -263,10 +265,11 @@ func TestGetBucketSessionInfo(t *testing.T) {
263265 expectedSessionInfo : objectstore.SessionInfo {
264266 Provider : "minio" ,
265267 Params : map [string ]string {
266- "region" : "minio-a" ,
267- "endpoint" : "minio-endpoint-9.com" ,
268- "disableSSL" : "true" ,
269- "fromEnv" : "true" ,
268+ "region" : "minio-a" ,
269+ "endpoint" : "minio-endpoint-9.com" ,
270+ "disableSSL" : "true" ,
271+ "fromEnv" : "true" ,
272+ "forcePathStyle" : "true" ,
270273 },
271274 },
272275 testDataCase : "case9" ,
@@ -277,13 +280,14 @@ func TestGetBucketSessionInfo(t *testing.T) {
277280 expectedSessionInfo : objectstore.SessionInfo {
278281 Provider : "minio" ,
279282 Params : map [string ]string {
280- "region" : "minio-a" ,
281- "endpoint" : "minio-endpoint-10.com" ,
282- "disableSSL" : "true" ,
283- "fromEnv" : "false" ,
284- "secretName" : "minio-test-secret-10" ,
285- "accessKeyKey" : "minio-test-accessKeyKey-10" ,
286- "secretKeyKey" : "minio-test-secretKeyKey-10" ,
283+ "region" : "minio-a" ,
284+ "endpoint" : "minio-endpoint-10.com" ,
285+ "disableSSL" : "true" ,
286+ "fromEnv" : "false" ,
287+ "secretName" : "minio-test-secret-10" ,
288+ "accessKeyKey" : "minio-test-accessKeyKey-10" ,
289+ "secretKeyKey" : "minio-test-secretKeyKey-10" ,
290+ "forcePathStyle" : "true" ,
287291 },
288292 },
289293 testDataCase : "case10" ,
@@ -294,10 +298,11 @@ func TestGetBucketSessionInfo(t *testing.T) {
294298 expectedSessionInfo : objectstore.SessionInfo {
295299 Provider : "minio" ,
296300 Params : map [string ]string {
297- "region" : "minio" ,
298- "endpoint" : "minio-endpoint-10.com" ,
299- "disableSSL" : "true" ,
300- "fromEnv" : "true" ,
301+ "region" : "minio" ,
302+ "endpoint" : "minio-endpoint-10.com" ,
303+ "disableSSL" : "true" ,
304+ "fromEnv" : "true" ,
305+ "forcePathStyle" : "true" ,
301306 },
302307 },
303308 testDataCase : "case10" ,
@@ -308,13 +313,14 @@ func TestGetBucketSessionInfo(t *testing.T) {
308313 expectedSessionInfo : objectstore.SessionInfo {
309314 Provider : "s3" ,
310315 Params : map [string ]string {
311- "region" : "us-east-1" ,
312- "endpoint" : "s3.amazonaws.com" ,
313- "disableSSL" : "false" ,
314- "fromEnv" : "false" ,
315- "secretName" : "s3-testsecret-6" ,
316- "accessKeyKey" : "s3-testaccessKeyKey-6" ,
317- "secretKeyKey" : "s3-testsecretKeyKey-6" ,
316+ "region" : "us-east-1" ,
317+ "endpoint" : "s3.amazonaws.com" ,
318+ "disableSSL" : "false" ,
319+ "fromEnv" : "false" ,
320+ "secretName" : "s3-testsecret-6" ,
321+ "accessKeyKey" : "s3-testaccessKeyKey-6" ,
322+ "secretKeyKey" : "s3-testsecretKeyKey-6" ,
323+ "forcePathStyle" : "false" ,
318324 },
319325 },
320326 testDataCase : "case6" ,
@@ -325,13 +331,14 @@ func TestGetBucketSessionInfo(t *testing.T) {
325331 expectedSessionInfo : objectstore.SessionInfo {
326332 Provider : "s3" ,
327333 Params : map [string ]string {
328- "region" : "us-east-2" ,
329- "endpoint" : "s3.us-east-2.amazonaws.com" ,
330- "disableSSL" : "false" ,
331- "fromEnv" : "false" ,
332- "secretName" : "s3-test-secret-6-b" ,
333- "accessKeyKey" : "s3-test-accessKeyKey-6-b" ,
334- "secretKeyKey" : "s3-test-secretKeyKey-6-b" ,
334+ "region" : "us-east-2" ,
335+ "endpoint" : "s3.us-east-2.amazonaws.com" ,
336+ "disableSSL" : "false" ,
337+ "fromEnv" : "false" ,
338+ "secretName" : "s3-test-secret-6-b" ,
339+ "accessKeyKey" : "s3-test-accessKeyKey-6-b" ,
340+ "secretKeyKey" : "s3-test-secretKeyKey-6-b" ,
341+ "forcePathStyle" : "false" ,
335342 },
336343 },
337344 testDataCase : "case6" ,
@@ -342,13 +349,14 @@ func TestGetBucketSessionInfo(t *testing.T) {
342349 expectedSessionInfo : objectstore.SessionInfo {
343350 Provider : "s3" ,
344351 Params : map [string ]string {
345- "region" : "us-east-1" ,
346- "endpoint" : "s3.amazonaws.com" ,
347- "disableSSL" : "false" ,
348- "fromEnv" : "false" ,
349- "secretName" : "s3-test-secret-6-a" ,
350- "accessKeyKey" : "s3-test-accessKeyKey-6-a" ,
351- "secretKeyKey" : "s3-test-secretKeyKey-6-a" ,
352+ "region" : "us-east-1" ,
353+ "endpoint" : "s3.amazonaws.com" ,
354+ "disableSSL" : "false" ,
355+ "fromEnv" : "false" ,
356+ "secretName" : "s3-test-secret-6-a" ,
357+ "accessKeyKey" : "s3-test-accessKeyKey-6-a" ,
358+ "secretKeyKey" : "s3-test-secretKeyKey-6-a" ,
359+ "forcePathStyle" : "false" ,
352360 },
353361 },
354362 testDataCase : "case6" ,
0 commit comments