Skip to content

Commit

Permalink
Remove deprecated assertions for HTTP Proxy CLI (#15646)
Browse files Browse the repository at this point in the history
Remove deprecated assertions
  • Loading branch information
vsedmik authored Jul 16, 2024
1 parent 725740f commit f6b46f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/foreman/cli/test_http_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,13 @@ def test_positive_assign_http_proxy_to_products(module_org, module_target_sat):
)

# Set the HTTP proxy through bulk action for both products to the selected proxy
res = module_target_sat.cli.Product.update_proxy(
module_target_sat.cli.Product.update_proxy(
{
'ids': f"{product_a['id']},{product_b['id']}",
'http-proxy-policy': 'use_selected_http_proxy',
'http-proxy-id': http_proxy_b['id'],
}
)
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}'
Expand All @@ -296,10 +295,9 @@ def test_positive_assign_http_proxy_to_products(module_org, module_target_sat):
assert int(info['content-counts']['packages']) == FAKE_0_YUM_REPO_PACKAGES_COUNT

# Set the HTTP proxy through bulk action for both products to None
res = module_target_sat.cli.Product.update_proxy(
module_target_sat.cli.Product.update_proxy(
{'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}'
Expand Down

0 comments on commit f6b46f5

Please sign in to comment.