There is a security vulnerability in SSH key-generation using GitKraken < v8.0.1. If you used this tool to create SSH keys, please update GitKraken and regenerate. If you need help with this, contact forum-support@opengroup.org

Commit d2881226 authored by Yannick's avatar Yannick
Browse files

fix unit test

parent f4b67410
Pipeline #50583 passed with stage
in 28 seconds
......@@ -4,6 +4,7 @@ import fsspec
import uuid
from osdu.core.api.storage.tenant import Tenant
from osdu_az.partition.partition_info import PartitionInfo
from osdu_az.partition.partition_service import PartitionService
from osdu_az.storage.blob_storage_az import AzureAioBlobStorage
from osdu_az.storage.dask_storage_parameters import get_dask_storage_parameters
......@@ -13,8 +14,20 @@ from tests.conftest import Config
@pytest.fixture
def with_azurite_credentials() -> AzureAioBlobStorage:
partition_info = PartitionInfo(
{
"storage-account-key": {
"sensitive": False,
"value": "storage-account-key"
},
"storage-account-name": {
"sensitive": False,
"value": "opendes-storage"
}
})
with patch.object(AzureAioBlobStorage, '_get_credentials', return_value=Config.credentials):
with patch.object(PartitionService, 'get_storage_account_name', return_value=Config.storage_account_name):
with patch.object(PartitionService, 'get_partition', return_value=partition_info):
yield
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment