test config restructuring

This commit is contained in:
Matthias Bisping 2022-02-25 13:12:41 +01:00
parent b0bd9aebdf
commit 4dc64124e1
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
test:
storage:
minio:
s3:
endpoint: "http://127.0.0.1:9000"

View File

@ -56,9 +56,9 @@ def get_adapter(client_name, s3_backend):
if client_name == "mock":
return StorageAdapterMock(StorageClientMock())
if client_name == "azure":
return AzureStorageAdapter(get_azure_client(CONFIG.test.azure))
return AzureStorageAdapter(get_azure_client(CONFIG.storage.azure))
if client_name == "s3":
return S3StorageAdapter(get_s3_client(CONFIG.test[s3_backend]))
return S3StorageAdapter(get_s3_client(CONFIG.storage[s3_backend]))
else:
raise UnknownClient(client_name)