From b26c39ac066bd11b645703dd653d990690ddfb44 Mon Sep 17 00:00:00 2001 From: Lukas Pramuk Date: Fri, 12 Apr 2024 10:40:58 +0200 Subject: [PATCH] Assert installer status when enabling OpenSCAP --- tests/foreman/api/test_capsule.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"]]