From 46ce634174d2d3af1b6e5caef9c4573ae6bc2b74 Mon Sep 17 00:00:00 2001 From: Ladislav Vasina Date: Tue, 26 Mar 2024 17:32:16 +0100 Subject: [PATCH] Change host details acquisition so the test is more stable --- tests/foreman/ui/test_jobinvocation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/foreman/ui/test_jobinvocation.py b/tests/foreman/ui/test_jobinvocation.py index 7c9f30bf2a9..290c5256389 100644 --- a/tests/foreman/ui/test_jobinvocation.py +++ b/tests/foreman/ui/test_jobinvocation.py @@ -95,9 +95,9 @@ def test_rex_through_host_details(session, target_sat, rex_contenthost, module_o ) task_status = target_sat.api.ForemanTask(id=task_result[0].id).poll() assert task_status['result'] == 'success' - recent_jobs = session.host_new.get_details(hostname, "overview.recent_jobs")['overview'] - assert recent_jobs['recent_jobs']['finished']['table'][0]['column0'] == "Run ls" - assert recent_jobs['recent_jobs']['finished']['table'][0]['column2'] == "succeeded" + recent_jobs = session.host_new.get_details(hostname, "overview.recent_jobs") + assert recent_jobs['overview']['recent_jobs']['finished']['table'][0]['column0'] == "Run ls" + assert recent_jobs['overview']['recent_jobs']['finished']['table'][0]['column2'] == "succeeded" @pytest.mark.tier4