@@ -286,7 +286,7 @@ def test_iop_recommendations_remediation_type_and_status(
286286 module_target_sat_insights ,
287287):
288288 """Set up Satellite with iop enabled, verify recommendations remediation type,
289- and test filtering recommendations by status.
289+ disable the recommendation, check status, then re-enable the recommendation .
290290
291291 :id: 62834698-b4b8-4218-855c-2b2aa584b364
292292
@@ -295,21 +295,18 @@ def test_iop_recommendations_remediation_type_and_status(
295295 2. In Satellite UI, go to Red Hat Lightspeed > Recommendations.
296296 3. Search for "OpenSSH config permissions" recommendation.
297297 4. Verify the recommendation's remediation type is "Playbook".
298- 5. Apply filter for "Enabled" status recommendations .
299- 6. Verify Enabled recommendations are greater than 0 .
300- 7. Apply filter for "Disabled" status recommendations .
301- 8. Verify Disabled recommendations are 0 .
298+ 5. Disable recommendation .
299+ 6. Verify recommendation is disabled .
300+ 7. Re-enable recommendation .
301+ 8. Verify recommendation is enabled .
302302
303303 :expectedresults:
304304 1. Red Hat Lightspeed recommendation related to "OpenSSH config permissions" issue is listed
305305 for misconfigured machine.
306306 2. The recommendation has remediation type "Playbook".
307- 3. Enabled recommendations are displayed (count greater than 0).
308- 4. No disabled recommendations are displayed.
307+ 3. Recommendation can be disabled and re-enabled.
309308
310- :CaseImportance: Critical
311-
312- :Verifies: SAT-32566
309+ :Verifies: SAT-32566, SAT-38139
313310
314311 :parametrized: yes
315312
@@ -343,3 +340,10 @@ def test_iop_recommendations_remediation_type_and_status(
343340 # Verify that the disabled recommendation is filtered
344341 result = session .recommendationstab .apply_filter ("Status" , "Disabled" )
345342 assert 'Decreased security: OpenSSH config permissions' in result [0 ]['Name' ]
343+
344+ session .recommendationstab .enable_recommendation (
345+ recommendation_name = 'Decreased security: OpenSSH config permissions'
346+ )
347+
348+ result = session .recommendationstab .apply_filter ("Status" , "Enabled" )
349+ assert 'Decreased security: OpenSSH config permissions' in result [0 ]['Name' ]
0 commit comments