File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ def __init__(self, config):
8484
8585 try :
8686 self .client = Minio (
87- endpoint = config .minio .endpoint ,
87+ endpoint = config .minio .endpoint . split ( "//" )[ - 1 ], # Allow user to specify URL (https://) to avoid errors
8888 access_key = config .minio .access_key ,
8989 secret_key = config .minio .secret_key ,
9090 secure = config .as_bool ("minio.secure" ),
Original file line number Diff line number Diff line change 1414TEST_DATA_DIR = os .path .join (os .path .dirname (os .path .realpath (__file__ )), "test_data" )
1515WORKSPACE = os .environ .get ("TEST_API_WORKSPACE" )
1616MINIO_URL = os .environ .get ("TEST_MINIO_URL" )
17+ MINIO_REGION = os .environ .get ("TEST_MINIO_REGION" )
1718MINIO_ACCESS_KEY = os .environ .get ("TEST_MINIO_ACCESS_KEY" )
1819MINIO_SECRET_KEY = os .environ .get ("TEST_MINIO_SECRET_KEY" )
1920GOOGLE_DRIVE_FOLDER = os .environ .get ("TEST_GOOGLE_DRIVE_FOLDER" )
@@ -48,7 +49,7 @@ def setup_config():
4849 "MINIO__BUCKET" : "" ,
4950 "MINIO__BUCKET_SUBPATH" : "" ,
5051 "MINIO__SECURE" : False ,
51- "MINIO__REGION" : "" ,
52+ "MINIO__REGION" : MINIO_REGION ,
5253 }
5354 )
5455
Original file line number Diff line number Diff line change 3131 MINIO_URL ,
3232 MINIO_ACCESS_KEY ,
3333 MINIO_SECRET_KEY ,
34+ MINIO_REGION ,
3435 GOOGLE_DRIVE_SERVICE_ACCOUNT_FILE ,
3536 GOOGLE_DRIVE_FOLDER ,
3637 cleanup ,
@@ -267,6 +268,7 @@ def test_minio_backend(mc):
267268 "MINIO__ACCESS_KEY" : MINIO_ACCESS_KEY ,
268269 "MINIO__SECRET_KEY" : MINIO_SECRET_KEY ,
269270 "MINIO__BUCKET" : "test" ,
271+ "MINIO__REGION" : MINIO_REGION
270272 }
271273 )
272274
You can’t perform that action at this time.
0 commit comments