Skip to content

Commit

Permalink
Assert installer status when enabling OpenSCAP (#14755)
Browse files Browse the repository at this point in the history
(cherry picked from commit f51bc59)
  • Loading branch information
lpramuk authored and web-flow committed Apr 12, 2024
1 parent c5bd1d9 commit 2dd1432
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/foreman/api/test_capsule.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def test_positive_update_capsule(request, pytestconfig, target_sat, module_capsu

# refresh features
features = capsule.refresh()
module_capsule_configured.install(cmd_args=['enable-foreman-proxy-plugin-openscap'])
result = module_capsule_configured.install(cmd_args=['enable-foreman-proxy-plugin-openscap'])
assert result.status == 0, 'Installer failed when enabling OpenSCAP plugin.'
features_new = capsule.refresh()
assert len(features_new["features"]) == len(features["features"]) + 1
assert 'Openscap' in [feature["name"] for feature in features_new["features"]]
Expand Down

0 comments on commit 2dd1432

Please sign in to comment.