Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.14.z] Wait for product HTTP Proxy update to finish #14286

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
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}'
),
max_tries=5,
poll_rate=10,
)
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}'
),
max_tries=5,
poll_rate=10,
)
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'
Loading