Skip to content

Commit

Permalink
Use get_tracer function instead of specific title function
Browse files Browse the repository at this point in the history
  • Loading branch information
sambible committed Mar 31, 2023
1 parent 1b94897 commit d7f1ed1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/foreman/ui/test_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -2621,7 +2621,7 @@ def test_positive_tracer_enable_reload(tracer_install_host, target_sat):
:id: c9ebd4a8-6db3-4d0e-92a2-14951c26769b
:caseComponent: katello-tracer
:caseComponent: Katello-tracer
:Team: Phoenix
Expand All @@ -2642,18 +2642,18 @@ def test_positive_tracer_enable_reload(tracer_install_host, target_sat):
)
with target_sat.ui_session() as session:
session.organization.select(host['organization_name'])
title = session.host_new.get_tracer_title(tracer_install_host.hostname)
assert title == "Traces are not enabled"
tracer = session.host_new.get_tracer(tracer_install_host.hostname)
assert tracer['title'] == "Traces are not enabled"
session.host_new.enable_tracer(tracer_install_host.hostname)
title = session.host_new.get_tracer_title(tracer_install_host.hostname)
assert title == "Traces are being enabled"
tracer = session.host_new.get_tracer(tracer_install_host.hostname)
assert tracer['title'] == "Traces are being enabled"
wait_for(
lambda: session.host_new.get_tracer_title(tracer_install_host.hostname)
lambda: session.host_new.get_tracer(tracer_install_host.hostname)['title']
!= "Traces are being enabled",
timeout=1800,
delay=5,
silent_failure=True,
handle_exception=True,
)
title = session.host_new.get_tracer_title(tracer_install_host.hostname)
assert title == "No applications to restart"
tracer = session.host_new.get_tracer(tracer_install_host.hostname)
assert tracer['title'] == "No applications to restart"

0 comments on commit d7f1ed1

Please sign in to comment.