Skip to content

Commit

Permalink
Add automation for BZ:1994654/SAT-4845
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Talreja <[email protected]>
  • Loading branch information
Gauravtalreja1 committed Oct 13, 2023
1 parent b1150c8 commit 1fff6e5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/foreman/ui/test_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1fff6e5

Please sign in to comment.