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(