diff --git a/tests/foreman/api/test_capsule.py b/tests/foreman/api/test_capsule.py index 48dd6d4b75b..7cbb989f940 100644 --- a/tests/foreman/api/test_capsule.py +++ b/tests/foreman/api/test_capsule.py @@ -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"]]