From de7d8fc05769e042879584eda3dc22565a20143e Mon Sep 17 00:00:00 2001 From: David Moore Date: Wed, 8 Nov 2023 14:22:13 -0500 Subject: [PATCH] Test fix for stream http_proxy failure --- tests/foreman/api/test_http_proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.