From 0e67c47f222796c06fec6563e168bc2fbaa24019 Mon Sep 17 00:00:00 2001 From: idanovinda Date: Fri, 6 Feb 2026 21:08:02 +0100 Subject: [PATCH] specify SPILO_PROVIDER to major upgrade manifest --- e2e/tests/test_e2e.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/e2e/tests/test_e2e.py b/e2e/tests/test_e2e.py index c5f9b656b..4bb22a590 100644 --- a/e2e/tests/test_e2e.py +++ b/e2e/tests/test_e2e.py @@ -154,11 +154,10 @@ class EndToEndTestCase(unittest.TestCase): # load minimal Postgres manifest and wait for cluster to be up and running with open("manifests/minimal-postgres-manifest.yaml", 'r') as f: postgres_manifest = yaml.safe_load(f) - - # specify SPILO_PROVIDER to local to avoid S3 connection attempts in tests - postgres_manifest.setdefault("spec", {})["env"] = [ - {"name": "SPILO_PROVIDER", "value": "local"} - ] + # specify SPILO_PROVIDER to local to avoid S3 connection attempts in tests + postgres_manifest["spec"]["env"] = [ + {"name": "SPILO_PROVIDER", "value": "local"} + ] with open("manifests/minimal-postgres-manifest.yaml", 'w') as f: yaml.dump(postgres_manifest, f, Dumper=yaml.Dumper) @@ -1216,6 +1215,9 @@ class EndToEndTestCase(unittest.TestCase): with open("manifests/minimal-postgres-lowest-version-manifest.yaml", 'r+') as f: upgrade_manifest = yaml.safe_load(f) upgrade_manifest["spec"]["dockerImage"] = SPILO_FULL_IMAGE + upgrade_manifest["spec"]["env"] = [ + {"name": "SPILO_PROVIDER", "value": "local"} + ] with open("manifests/minimal-postgres-lowest-version-manifest.yaml", 'w') as f: yaml.dump(upgrade_manifest, f, Dumper=yaml.Dumper)