Skip to content

Commit

Permalink
variable value should del after update
Browse files Browse the repository at this point in the history
  • Loading branch information
amolpati30 committed Nov 20, 2024
1 parent dd729b1 commit eb0d66c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions tests/foreman/ui/test_ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ def test_positive_host_role_information(self, target_sat, function_host):
all_assigned_roles_table = session.host_new.get_ansible_roles_modal(function_host.name)
assert all_assigned_roles_table[0]['Name'] == SELECTED_ROLE

@pytest.mark.no_containers
@pytest.mark.rhel_ver_list([8])
@pytest.mark.rhel_ver_match('8')
def test_positive_assign_ansible_role_variable_on_host(
self,
request,
Expand Down Expand Up @@ -808,7 +807,7 @@ def test_positive_install_ansible_collection(
status = session.jobinvocation.read(
entity_name=job_description, host_name=client.hostname
)
assert status['overview']['hosts_table'][0]['Status'] == 'Succeeded'
assert status['overview']['hosts_table'][0]['Status'] == 'success'

collection_path = client.execute('ls ~/ansible_collections').stdout
assert 'oasis_roles' in collection_path
Expand Down
2 changes: 1 addition & 1 deletion tests/foreman/ui/test_leapp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ def test_leapp_preupgrade_report(
status = session.jobinvocation.read(
entity_name='Upgradeability check for rhel host', host_name=hostname
)
assert status['overview']['hosts_table'][0]['Status'] == 'Succeeded'
assert status['overview']['hosts_table'][0]['Status'] == 'success'
10 changes: 5 additions & 5 deletions tests/foreman/ui/test_remoteexecution.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def test_positive_run_default_job_template(
)
session.jobinvocation.wait_job_invocation_state(entity_name='Run ls', host_name=hostname)
status = session.jobinvocation.read(entity_name='Run ls', host_name=hostname)
assert status['overview']['hosts_table'][0]['Status'] == 'Succeeded'
assert status['overview']['hosts_table'][0]['Status'] == 'success'

# check status also on the job dashboard
job_name = f'Run {command}'
Expand Down Expand Up @@ -250,7 +250,7 @@ def test_positive_run_custom_job_template(
entity_name=job_description, host_name=hostname
)
status = session.jobinvocation.read(entity_name=job_description, host_name=hostname)
assert status['overview']['hosts_table'][0]['Status'] == 'Succeeded'
assert status['overview']['hosts_table'][0]['Status'] == 'success'


@pytest.mark.upgrade
Expand Down Expand Up @@ -364,7 +364,7 @@ def test_positive_run_scheduled_job_template_by_ip(session, module_org, rex_cont
assert job_status['overview']['hosts_table'][0]['Status'] in (
'Awaiting start',
'N/A',
'Succeeded',
'success',
)
# recalculate the job left time to be more accurate
job_left_time = (plan_time - session.browser.get_client_datetime()).total_seconds()
Expand All @@ -383,14 +383,14 @@ def test_positive_run_scheduled_job_template_by_ip(session, module_org, rex_cont
lambda: session.jobinvocation.read(
f'Run {command_to_run}', hostname, 'overview.hosts_table'
)['overview']['hosts_table'][0]['Status']
== 'Succeeded',
== 'success',
timeout=30,
delay=1,
)
job_status = session.jobinvocation.read(f'Run {command_to_run}', hostname, 'overview')
assert job_status['overview']['job_status'] == 'Success'
assert job_status['overview']['hosts_table'][0]['Host'] == hostname
assert job_status['overview']['hosts_table'][0]['Status'] == 'Succeeded'
assert job_status['overview']['hosts_table'][0]['Status'] == 'success'


@pytest.mark.tier2
Expand Down

0 comments on commit eb0d66c

Please sign in to comment.