From 80c8151654acf3561b50511513157b75cf1ee03c Mon Sep 17 00:00:00 2001 From: vsedmik <46570670+vsedmik@users.noreply.github.com> Date: Fri, 1 Mar 2024 11:35:58 +0100 Subject: [PATCH] Fix server_config in subscription test (#14226) --- tests/foreman/api/test_subscription.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/foreman/api/test_subscription.py b/tests/foreman/api/test_subscription.py index 3f988471913..316ef4e7448 100644 --- a/tests/foreman/api/test_subscription.py +++ b/tests/foreman/api/test_subscription.py @@ -203,11 +203,11 @@ def test_positive_delete_manifest_as_another_user( ) # use the first admin to upload a manifest with function_entitlement_manifest as manifest: - target_sat.api.Subscription(sc1, organization=function_org).upload( + target_sat.api.Subscription(server_config=sc1, organization=function_org).upload( data={'organization_id': function_org.id}, files={'content': manifest.content} ) # try to search and delete the manifest with another admin - target_sat.api.Subscription(sc2, organization=function_org).delete_manifest( + target_sat.api.Subscription(server_config=sc2, organization=function_org).delete_manifest( data={'organization_id': function_org.id} ) assert len(target_sat.cli.Subscription.list({'organization-id': function_org.id})) == 0