Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@
);
"""

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}"
Expand Down Expand Up @@ -100,7 +97,6 @@ def create_avp_policy_store(env_id):
return policy_store_id


@pytest.fixture
@cache
def env_id():
return set_env_id("test_aws_auth_manager")
Expand All @@ -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
Expand Down Expand Up @@ -189,7 +185,7 @@ def delete_avp_policy_store(cls):
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:
Expand Down