Skip to content

Commit

Permalink
Change host details acquisition so the test is more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
LadislavVasina1 committed Mar 26, 2024
1 parent d3b8cae commit 46ce634
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/foreman/ui/test_jobinvocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46ce634

Please sign in to comment.