From 2dd1432e0e5843167a7621cdb9b41514c7cff051 Mon Sep 17 00:00:00 2001 From: Lukas Pramuk Date: Fri, 12 Apr 2024 11:24:30 +0200 Subject: [PATCH] Assert installer status when enabling OpenSCAP (#14755) (cherry picked from commit f51bc59a4223c9289f4aee4b15335629187acf41) --- 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"]]