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 Dec 7, 2024
1 parent e7f903f commit d26d767
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 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
2 changes: 1 addition & 1 deletion tests/foreman/ui/test_errata.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ def test_positive_apply_for_all_hosts(
search_rate=2,
max_tries=60,
)
assert len(hosts_job) == 1
assert len(hosts_job) >= 1
# find multiple install tasks, one for each host
install_tasks = target_sat.wait_for_tasks(
search_query=(
Expand Down

0 comments on commit d26d767

Please sign in to comment.