From 415bb8d0b2826ff8cd5cf123e73daa8a95593374 Mon Sep 17 00:00:00 2001 From: yanpliu Date: Fri, 22 Mar 2024 10:24:55 -0400 Subject: [PATCH] content host set location to Default_Organization --- tests/foreman/virtwho/ui/test_esx_sca.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/foreman/virtwho/ui/test_esx_sca.py b/tests/foreman/virtwho/ui/test_esx_sca.py index a4c45dd4960..3656ba09038 100644 --- a/tests/foreman/virtwho/ui/test_esx_sca.py +++ b/tests/foreman/virtwho/ui/test_esx_sca.py @@ -243,7 +243,12 @@ def test_positive_filtering_option( @pytest.mark.tier2 def test_positive_last_checkin_status( - self, module_sca_manifest_org, virtwho_config_ui, form_data_ui, org_session + self, + module_sca_manifest_org, + virtwho_config_ui, + form_data_ui, + org_session, + default_location, ): """Verify the Last Checkin status on Content Hosts Page. @@ -265,6 +270,7 @@ def test_positive_last_checkin_status( ) time_now = org_session.browser.get_client_datetime() assert org_session.virtwho_configure.search(name)[0]['Status'] == 'ok' + org_session.location.select(default_location.name) checkin_time = org_session.contenthost.search(hypervisor_name)[0]['Last Checkin'] # 10 mins margin to check the Last Checkin time assert (