diff --git a/tests/foreman/api/test_http_proxy.py b/tests/foreman/api/test_http_proxy.py index 0b4446069bb..f92e7e7d123 100644 --- a/tests/foreman/api/test_http_proxy.py +++ b/tests/foreman/api/test_http_proxy.py @@ -99,8 +99,12 @@ def test_positive_end_to_end(setup_http_proxy, module_target_sat, module_manifes assert repo_2.http_proxy_policy == 'global_default_http_proxy' # Update to selected_http_proxy - repo_2.http_proxy_policy = 'none' - repo_2.update(['http_proxy_policy']) + module_target_sat.api.Repository( + id=repo_2.id, + http_proxy_policy='none', + http_proxy_id=None, + ).update() + repo_2 = repo_2.read() assert repo_2.http_proxy_policy == 'none' # test scenario for yum type repo discovery.