From 31ff3cb761aec3b8343a298f34b5658562501e64 Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Thu, 3 Aug 2023 12:54:45 +0100 Subject: [PATCH 1/2] test_runner: set AWS credentials for endpoints --- test_runner/fixtures/neon_fixtures.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test_runner/fixtures/neon_fixtures.py b/test_runner/fixtures/neon_fixtures.py index 0a9735ce9e56..392c4d4c0b50 100644 --- a/test_runner/fixtures/neon_fixtures.py +++ b/test_runner/fixtures/neon_fixtures.py @@ -1595,7 +1595,11 @@ def endpoint_start( if endpoint_id is not None: args.append(endpoint_id) - res = self.raw_cli(args) + s3_env_vars = None + if self.env.remote_storage is not None and isinstance(self.env.remote_storage, S3Storage): + s3_env_vars = self.env.remote_storage.access_env_vars() + + res = self.raw_cli(args, extra_env_vars=s3_env_vars) res.check_returncode() return res From 5903505617e73cb8b50d65b483b4f057ec270b2d Mon Sep 17 00:00:00 2001 From: Alexander Bayandin Date: Thu, 3 Aug 2023 13:21:49 +0100 Subject: [PATCH 2/2] Fix compatibility tests --- test_runner/regress/test_compatibility.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test_runner/regress/test_compatibility.py b/test_runner/regress/test_compatibility.py index 754d23a01a27..eb26270a5fbd 100644 --- a/test_runner/regress/test_compatibility.py +++ b/test_runner/regress/test_compatibility.py @@ -337,6 +337,7 @@ def check_neon_works( config.pg_version = pg_version config.initial_tenant = snapshot_config["default_tenant_id"] config.pg_distrib_dir = pg_distrib_dir + config.remote_storage = None # Use the "target" binaries to launch the storage nodes config_target = config