From 7f2aee9c6ef4455ffcd1f7a515ba6f1cfb493ee2 Mon Sep 17 00:00:00 2001 From: David Moore Date: Tue, 28 Nov 2023 15:53:21 -0500 Subject: [PATCH] Local pass --- tests/foreman/ui/test_contenthost.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/foreman/ui/test_contenthost.py b/tests/foreman/ui/test_contenthost.py index 82e1271b524..f9808561838 100644 --- a/tests/foreman/ui/test_contenthost.py +++ b/tests/foreman/ui/test_contenthost.py @@ -148,17 +148,18 @@ def test_positive_end_to_end( assert result.status == 0 startdate = datetime.utcnow().strftime('%m/%d/%Y') with session: - host_details = session.host_new.get_details(vm.hostname) + session.location.select(default_location.name) + session.organization.select(module_org.name) + # Use new host UI, check the status and RHEL Lifecycle in details + session.settings.update(f'name = {"new_hosts_page"}', 'Yes') + host_details = session.host.get_details(vm.hostname) assert ( rhel_lifecycle_status in host_details['properties']['properties_table']['RHEL lifecycle'] ) - session.location.select(default_location.name) - session.organization.select(module_org.name) - # Use new_host UI,only to check new page's status and RHEL details - session.settings.update(f'name = {"new_hosts_page"}', 'Yes') host_status = session.host_new.get_host_statuses(vm.hostname) assert rhel_lifecycle_status in host_status['RHEL lifecycle']['Status'] + # TODO: Use UI in All Hosts page, add 'RHEL Lifecycle status' column, assert the status. session.settings.update(f'name = {"new_hosts_page"}', 'No') # Ensure content host is searchable assert session.contenthost.search(vm.hostname)[0]['Name'] == vm.hostname