From 48a1b5934c5c8ec6a8f3f55ba9f278bf7e0863cc 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 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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.