Skip to content

Commit

Permalink
Assert installer status when enabling OpenSCAP (#14755)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpramuk authored Apr 12, 2024
1 parent e3b8137 commit f51bc59
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 f51bc59

Please sign in to comment.