diff --git a/tests/foreman/api/test_http_proxy.py b/tests/foreman/api/test_http_proxy.py index 0b4446069bb..b1b14c8aa8d 100644 --- a/tests/foreman/api/test_http_proxy.py +++ b/tests/foreman/api/test_http_proxy.py @@ -99,8 +99,8 @@ 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').update() + repo_2 = repo_2.read() assert repo_2.http_proxy_policy == 'none' # test scenario for yum type repo discovery.