From e17cb611c41dee5be581b8d0122eee54fbb94cb8 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Thu, 29 Aug 2024 10:33:01 -0400 Subject: [PATCH] [6.16.z] remove host subscription and update host_status check for sca-only (#16141) remove host subscription and update host_status check for sca-only (#16106) (cherry picked from commit fa53aed9c09bb0bce4407754b3d0d5b890ffe647) Co-authored-by: yanpliu --- robottelo/utils/virtwho.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/robottelo/utils/virtwho.py b/robottelo/utils/virtwho.py index 279ad2acee2..c6d1bba6968 100644 --- a/robottelo/utils/virtwho.py +++ b/robottelo/utils/virtwho.py @@ -611,11 +611,9 @@ def hypervisor_guest_mapping_check_legacy_ui( org_session.location.select(default_location.name) hypervisor_display_name = org_session.contenthost.search(hypervisor_name)[0]['Name'] hypervisorhost = org_session.contenthost.read_legacy_ui(hypervisor_display_name) - assert hypervisorhost['details']['subscription_status'] == 'Simple Content Access' assert hypervisorhost['details']['virtual_guest'] == '1 Content Host' # Check virtual guest subscription status and hypervisor host and virtual guest mapping in Legacy UI virtualguest = org_session.contenthost.read_legacy_ui(guest_name) - assert virtualguest['details']['subscription_status'] == 'Simple Content Access' assert virtualguest['details']['virtual_host'] == hypervisor_display_name @@ -624,7 +622,7 @@ def hypervisor_guest_mapping_newcontent_ui(org_session, hypervisor_name, guest_n hypervisorhost_new_overview = org_session.host_new.get_details( hypervisor_display_name, 'overview' ) - assert hypervisorhost_new_overview['overview']['host_status']['status_success'] == '2' + assert hypervisorhost_new_overview['overview']['host_status']['status_success'] == '1' # hypervisor host Check details hypervisorhost_new_detais = org_session.host_new.get_details(hypervisor_display_name, 'details') assert ( @@ -637,7 +635,7 @@ def hypervisor_guest_mapping_newcontent_ui(org_session, hypervisor_name, guest_n ) # Check guest overview guest_new_overview = org_session.host_new.get_details(guest_name, 'overview') - assert guest_new_overview['overview']['host_status']['status_success'] == '2' + assert guest_new_overview['overview']['host_status']['status_success'] == '1' # Check guest details virtualguest_new_detais = org_session.host_new.get_details(guest_name, 'details') assert (