From 7948c4561d6875b5bc7a3cf5bc7b96e3f1c08ff8 Mon Sep 17 00:00:00 2001 From: Andrei Chekun Date: Wed, 30 Oct 2024 10:47:15 +0100 Subject: [PATCH] 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. --- test/pylib/minio_server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/pylib/minio_server.py b/test/pylib/minio_server.py index ac45bb689f..49711c71bd 100755 --- a/test/pylib/minio_server.py +++ b/test/pylib/minio_server.py @@ -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):