From 9d2d8f47576658b5b2766ba71524c369319ffbef Mon Sep 17 00:00:00 2001 From: Vladimir Sedmik Date: Fri, 14 Jun 2024 17:04:59 +0200 Subject: [PATCH] Add assertion for manifest refresh via HTTP proxy --- tests/foreman/api/test_http_proxy.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/foreman/api/test_http_proxy.py b/tests/foreman/api/test_http_proxy.py index 4d4b3faf8f9..a0a9a7d4eb0 100644 --- a/tests/foreman/api/test_http_proxy.py +++ b/tests/foreman/api/test_http_proxy.py @@ -76,12 +76,14 @@ def test_positive_end_to_end( 2. For each repo set global default HTTP proxy and sync it. 3. For each repo set specific HTTP proxy and sync it. 4. For each repo set no HTTP proxy and sync it. - 5. Discover yum type repo through HTTP proxy. - 6. Discover docker type repo through HTTP proxy. + 5. Refresh manifest through HTTP proxy. + 6. Discover yum type repo through HTTP proxy. + 7. Discover docker type repo through HTTP proxy. :expectedresults: 1. All repository updates and syncs succeed. - 2. Yum and docker repos can be discovered through HTTP proxy. + 2. Manifest can be refreshed through HTTP proxy. + 3. Yum and docker repos can be discovered through HTTP proxy. :BZ: 2011303, 2042473, 2046337 @@ -114,6 +116,12 @@ def test_positive_end_to_end( 'success' in module_target_sat.api.Repository(id=repo.id).sync()['result'] ), f'Sync of a {repo.content_type} repo with {policy} HTTP policy failed' + # Refresh manifest through HTTP proxy + res = module_target_sat.api.Subscription().refresh_manifest( + data={'organization_id': module_org.id} + ) + assert 'success' in res['result'] + # Discover yum type repo through HTTP proxy repo_name = 'fakerepo01' yum_repo = module_target_sat.api.Organization(id=module_org.id).repo_discover(