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:
Andrei Chekun
2024-10-30 10:47:15 +01:00
parent 108ef5856f
commit 7948c4561d

View File

@@ -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):