Skip to content

Commit

Permalink
Add assertion for manifest refresh via HTTP proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
vsedmik committed Jun 14, 2024
1 parent a425a14 commit 9d2d8f4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tests/foreman/api/test_http_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 9d2d8f4

Please sign in to comment.