Skip to content

Commit

Permalink
ContentViews hosts: RHEL7 > RHEL10 & 9
Browse files Browse the repository at this point in the history
  • Loading branch information
damoore044 committed Nov 29, 2024
1 parent 8bf15a0 commit 595f819
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions tests/foreman/cli/test_contentview.py
Original file line number Diff line number Diff line change
Expand Up @@ -1910,8 +1910,9 @@ def test_positive_subscribe_chost_by_id_using_ccv(self, module_org, module_targe
@pytest.mark.skipif(
(not settings.robottelo.REPOS_HOSTING_URL), reason='Missing repos_hosting_url'
)
@pytest.mark.rhel_ver_match('N-1')
def test_positive_sub_host_with_restricted_user_perm_at_custom_loc(
self, module_org, rhel7_contenthost, target_sat
self, module_org, rhel_contenthost, target_sat
):
"""Attempt to subscribe a host with restricted user permissions and
custom location.
Expand Down Expand Up @@ -2064,16 +2065,17 @@ def test_positive_sub_host_with_restricted_user_perm_at_custom_loc(
}
)
# create a client host and register it with the created user
rhel7_contenthost.register(org, loc, ak_name, target_sat)
assert rhel7_contenthost.subscribed
rhel_contenthost.register(org, loc, ak_name, target_sat)
assert rhel_contenthost.subscribed
# check that the client host exist in the system
org_hosts = target_sat.cli.Host.list({'organization-id': org['id']})
assert len(org_hosts) == 1
assert org_hosts[0]['name'] == rhel7_contenthost.hostname
assert org_hosts[0]['name'] == rhel_contenthost.hostname

@pytest.mark.tier3
@pytest.mark.rhel_ver_match('N-1')
def test_positive_sub_host_with_restricted_user_perm_at_default_loc(
self, module_org, rhel7_contenthost, target_sat
self, module_org, rhel_contenthost, target_sat
):
"""Attempt to subscribe a host with restricted user permissions and
default location.
Expand Down Expand Up @@ -2213,12 +2215,12 @@ def test_positive_sub_host_with_restricted_user_perm_at_default_loc(
assert content_view['name'] == user_content_view['name']
ak = target_sat.api.ActivationKey(content_view=user_content_view, organization=org).create()
# create a client host and register it with the created user
rhel7_contenthost.register(org, loc, ak.name, target_sat)
assert rhel7_contenthost.subscribed
rhel_contenthost.register(org, loc, ak.name, target_sat)
assert rhel_contenthost.subscribed
# check that the client host exist in the system
org_hosts = target_sat.cli.Host.list({'organization-id': org['id']})
assert len(org_hosts) == 1
assert org_hosts[0]['name'] == rhel7_contenthost.hostname
assert org_hosts[0]['name'] == rhel_contenthost.hostname

@pytest.mark.tier1
def test_positive_clone_by_name(self, module_org, module_target_sat):
Expand Down

0 comments on commit 595f819

Please sign in to comment.