Skip to content

Commit

Permalink
Update tests/foreman/destructive/test_capsule_loadbalancer.py
Browse files Browse the repository at this point in the history
Co-authored-by: Gaurav Talreja <[email protected]>
  • Loading branch information
pondrejk and Gauravtalreja1 committed Mar 15, 2024
1 parent b850ab9 commit dc61347
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/foreman/cli/test_errata.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,8 @@ def test_positive_list_affected_chosts_by_erratum_restrict_flag(
'inclusion': 'false',
}
)
request.addfinalizer(lambda:
cv_filter_cleanup(
request.addfinalizer(
lambda: cv_filter_cleanup(
target_sat, cv_filter['filter-id'], module_cv, module_sca_manifest_org, module_lce
)
)
Expand Down Expand Up @@ -856,8 +856,8 @@ def test_host_errata_search_commands(
'inclusion': 'false',
}
)
request.addfinalizer(lambda:
cv_filter_cleanup(
request.addfinalizer(
lambda: cv_filter_cleanup(
target_sat, cv_filter['filter-id'], module_cv, module_sca_manifest_org, module_lce
)
)
Expand Down
4 changes: 3 additions & 1 deletion tests/foreman/destructive/test_capsule_loadbalancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ def test_loadbalancer_install_package(
if loadbalancer_setup['setup_capsules']['capsule_1'].hostname in result.stdout
else loadbalancer_setup['setup_capsules']['capsule_2']
)
request.addfinalizer(registered_to_capsule.power_control(state=VmState.RUNNING, ensure=True))
request.addfinalizer(
lambda: registered_to_capsule.power_control(state=VmState.RUNNING, ensure=True)
)

# Remove the packages from the client
result = rhel7_contenthost.execute('yum remove -y tree')
Expand Down

0 comments on commit dc61347

Please sign in to comment.