This is an automated email from the ASF dual-hosted git repository.

vincbeck pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new b1498d0ac3b Fix policy store deletion in `test_aws_auth_manager` 
(#60837)
b1498d0ac3b is described below

commit b1498d0ac3b0811c0f25ad5847c424c5f9e0b652
Author: Vincent <[email protected]>
AuthorDate: Tue Jan 20 14:28:48 2026 -0500

    Fix policy store deletion in `test_aws_auth_manager` (#60837)
---
 .../tests/system/amazon/aws/tests/test_aws_auth_manager.py     | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git 
a/providers/amazon/tests/system/amazon/aws/tests/test_aws_auth_manager.py 
b/providers/amazon/tests/system/amazon/aws/tests/test_aws_auth_manager.py
index 993e8a9ac3d..c5faac50971 100644
--- a/providers/amazon/tests/system/amazon/aws/tests/test_aws_auth_manager.py
+++ b/providers/amazon/tests/system/amazon/aws/tests/test_aws_auth_manager.py
@@ -63,9 +63,6 @@ permit (
 );
 """
 
-env_id_cache: str | None = None
-policy_store_id_cache: str | None = None
-
 
 def create_avp_policy_store(env_id):
     description = f"Created by system test TestAwsAuthManager: {env_id}"
@@ -100,7 +97,6 @@ def create_avp_policy_store(env_id):
     return policy_store_id
 
 
[email protected]
 @cache
 def env_id():
     return set_env_id("test_aws_auth_manager")
@@ -113,8 +109,8 @@ def region_name():
 
 @pytest.fixture
 @cache
-def avp_policy_store_id(env_id):
-    return create_avp_policy_store(env_id)
+def avp_policy_store_id():
+    return create_avp_policy_store(env_id())
 
 
 @pytest.fixture
@@ -189,7 +185,7 @@ class TestAwsAuthManager:
             for page in pages
             for store in page["policyStores"]
             if "description" in store
-            and f"Created by system test TestAwsAuthManager: {env_id_cache}" 
in store["description"]
+            and f"Created by system test TestAwsAuthManager: {env_id()}" in 
store["description"]
         ]
 
         for policy_store_id in policy_store_ids:

Reply via email to