From d32ecd07d424d1d232a24eca450daf6b3cdfdaf9 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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/foreman/ui/test_contenthost.py b/tests/foreman/ui/test_contenthost.py index 82e1271b524..25bb727efc4 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: + 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_new.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