From 7c043b36fbc5bc587aef860c448e25f942b63dcc Mon Sep 17 00:00:00 2001 From: yanpliu Date: Thu, 11 Apr 2024 14:49:01 -0400 Subject: [PATCH] content host set location to Default Location (#14497) content host set location to Default_Organization (cherry picked from commit 1a432dfb897d5404571036112363075865d87de0) --- 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 (