From 1fff6e50f153406c5cebe14719a4ceffa85b76b9 Mon Sep 17 00:00:00 2001 From: Gaurav Talreja Date: Fri, 13 Oct 2023 13:51:38 +0530 Subject: [PATCH] Add automation for BZ:1994654/SAT-4845 Signed-off-by: Gaurav Talreja --- tests/foreman/ui/test_host.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/foreman/ui/test_host.py b/tests/foreman/ui/test_host.py index 27ec9ca39cd..972d08ed0b5 100644 --- a/tests/foreman/ui/test_host.py +++ b/tests/foreman/ui/test_host.py @@ -1302,12 +1302,23 @@ def test_global_registration_form_populate( }, full_read=True, ) - assert hg_name in cmd['general']['host_group'] assert module_ak_with_cv.name in cmd['general']['activation_key_helper'] assert module_lce.name in cmd['advanced']['life_cycle_env_helper'] assert constants.FAKE_0_CUSTOM_PACKAGE in cmd['advanced']['install_packages_helper'] + new_org = target_sat.api.Organization().create() + new_ak = target_sat.api.ActivationKey(organization=new_org).create() + session.organization.select(org_name=new_org.name) + cmd = session.host.get_register_command( + { + 'general.orgnization': new_org.name, + 'general.insecure': True, + }, + full_read=True, + ) + assert new_ak.name in cmd['general']['activation_key_helper'] + @pytest.mark.tier2 def test_global_registration_with_capsule_host(