From 17f1094a6d085c3d50ce21c0d067acf1fe7e3471 Mon Sep 17 00:00:00 2001 From: vsedmik Date: Fri, 3 Jul 2026 14:52:30 +0200 Subject: [PATCH] Fix test_positive_capsule_sync_openstack_container_repos --- tests/foreman/api/test_capsulecontent.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/foreman/api/test_capsulecontent.py b/tests/foreman/api/test_capsulecontent.py index b63025cc7a2..a9c8275ece3 100644 --- a/tests/foreman/api/test_capsulecontent.py +++ b/tests/foreman/api/test_capsulecontent.py @@ -665,7 +665,7 @@ def test_positive_on_demand_sync( def test_positive_update_with_immediate_sync( self, target_sat, - module_capsule_configured, + capsule_configured, function_org, function_product, function_lce, @@ -692,12 +692,12 @@ def test_positive_update_with_immediate_sync( url=repo_url, ).create() # Update capsule's download policy to on_demand to match repository's policy - module_capsule_configured.update_download_policy('on_demand') + capsule_configured.update_download_policy('on_demand') # Associate the lifecycle environment with the capsule - module_capsule_configured.nailgun_capsule.content_add_lifecycle_environment( + capsule_configured.nailgun_capsule.content_add_lifecycle_environment( data={'environment_id': function_lce.id} ) - result = module_capsule_configured.nailgun_capsule.content_lifecycle_environments() + result = capsule_configured.nailgun_capsule.content_lifecycle_environments() assert len(result['results']) assert function_lce.id in [capsule_lce['id'] for capsule_lce in result['results']] @@ -718,7 +718,7 @@ def test_positive_update_with_immediate_sync( timestamp = datetime.now(UTC) cvv.promote(data={'environment_ids': function_lce.id}) - module_capsule_configured.wait_for_sync(start_time=timestamp) + capsule_configured.wait_for_sync(start_time=timestamp) cvv = cvv.read() assert len(cvv.environment) == 2 @@ -729,7 +729,7 @@ def test_positive_update_with_immediate_sync( assert repo.download_policy == 'immediate' # Update capsule's download policy as well - module_capsule_configured.update_download_policy('immediate') + capsule_configured.update_download_policy('immediate') # Sync repository once again repo.sync() @@ -746,12 +746,12 @@ def test_positive_update_with_immediate_sync( timestamp = datetime.now(UTC) cvv.promote(data={'environment_ids': function_lce.id}) - module_capsule_configured.wait_for_sync(start_time=timestamp) + capsule_configured.wait_for_sync(start_time=timestamp) cvv = cvv.read() assert len(cvv.environment) == 2 # Verify the count of RPMs published on Capsule - caps_repo_url = module_capsule_configured.get_published_repo_url( + caps_repo_url = capsule_configured.get_published_repo_url( org=function_org.label, lce=function_lce.label, cv=cv.label,