Skip to content

Commit

Permalink
Wait for product HTTP Proxy update to finish
Browse files Browse the repository at this point in the history
  • Loading branch information
vsedmik committed Mar 6, 2024
1 parent cc8227d commit d73c742
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/foreman/cli/test_http_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,13 @@ def test_positive_assign_http_proxy_to_products(module_org, module_target_sat):
}
)
assert 'Product proxy updated' in res
module_target_sat.wait_for_tasks(
search_query=(
f'Actions::Katello::Repository::Update and organization_id = {module_org.id}'
),
poll_rate=10,
max_tries=5,
)
for repo in repo_a1, repo_a2, repo_b1, repo_b2:
result = module_target_sat.cli.Repository.info({'id': repo['id']})
assert result['http-proxy']['http-proxy-policy'] == 'use_selected_http_proxy'
Expand All @@ -293,6 +300,13 @@ def test_positive_assign_http_proxy_to_products(module_org, module_target_sat):
{'ids': f"{product_a['id']},{product_b['id']}", 'http-proxy-policy': 'none'}
)
assert 'Product proxy updated' in res
module_target_sat.wait_for_tasks(
search_query=(
f'Actions::Katello::Repository::Update and organization_id = {module_org.id}'
),
poll_rate=10,
max_tries=5,
)
for repo in repo_a1, repo_a2, repo_b1, repo_b2:
result = module_target_sat.cli.Repository.info({'id': repo['id']})
assert result['http-proxy']['http-proxy-policy'] == 'none'

0 comments on commit d73c742

Please sign in to comment.