test.py: Add method to get environment variables from MinIO wrapper
Add method to retrieve MinIO server wrapper environment variables for later processing. This change will allow to sharing connection information with other processes and allow reusing the server across multiple tests.
This commit is contained in:
@@ -206,6 +206,9 @@ class MinioServer:
|
||||
self.ENV_ACCESS_KEY,
|
||||
self.ENV_SECRET_KEY]
|
||||
|
||||
def get_envs_settings(self):
|
||||
return {key: os.environ[key] for key in self._get_environs()}
|
||||
|
||||
def _unset_environ(self):
|
||||
for env in self._get_environs():
|
||||
if value := self.old_env.get(env):
|
||||
|
||||
Reference in New Issue
Block a user