From 1022563912a7aad6a16c191f3b18dd58f8b7d05c Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Thu, 14 Dec 2023 02:28:46 -0500 Subject: [PATCH] [6.14.z] cli org test fixes (#13452) --- tests/foreman/cli/test_organization.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/foreman/cli/test_organization.py b/tests/foreman/cli/test_organization.py index a34bea5f7fc..9b2b3893c8d 100644 --- a/tests/foreman/cli/test_organization.py +++ b/tests/foreman/cli/test_organization.py @@ -153,7 +153,7 @@ def test_positive_create_with_system_admin_user(module_target_sat): org_name = gen_string('alpha') module_target_sat.cli_factory.user({'login': login, 'password': password}) module_target_sat.cli.User.add_role({'login': login, 'role': 'System admin'}) - module_target_sat.cli_factory.make_org({'user': login, 'password': password, 'name': org_name}) + module_target_sat.cli_factory.make_org({'users': login, 'name': org_name}) result = module_target_sat.cli.Org.info({'name': org_name}) assert result['name'] == org_name @@ -536,7 +536,6 @@ def test_positive_add_and_remove_locations(module_org, module_target_sat): {'location': locations[1]['name'], 'name': module_org.name} ) org_info = module_target_sat.cli.Org.info({'id': module_org.id}) - assert len(org_info['locations']) == 2, "Failed to add locations" assert locations[0]['name'] in org_info['locations'] assert locations[1]['name'] in org_info['locations'] module_target_sat.cli.Org.remove_location(