Skip to content

Commit 2402337

Browse files
committed
update test for enable/disable recommendations (IoP) (#20520)
* update test for enable disable iop * Fix failing tests and fixture * pre-commit * update pytest marker * add enable functionality to iop * update pytest marker * update test with new entity * update to rhel 10 for recommendations (cherry picked from commit 0b9ef3c)
1 parent 0892748 commit 2402337

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/foreman/ui/test_rhcloud_iop.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,15 +325,15 @@ def test_iop_negative_rhcloud_inventory_upload_not_displayed(module_target_sat_i
325325

326326
@pytest.mark.e2e
327327
@pytest.mark.no_containers
328-
@pytest.mark.rhel_ver_match(r'^(?![78]).*')
328+
@pytest.mark.rhel_ver_match('10')
329329
@pytest.mark.parametrize('module_target_sat_insights', [False], ids=['local'], indirect=True)
330330
def test_iop_recommendations_remediation_type_and_status(
331331
rhel_insights_vm,
332332
rhcloud_manifest_org,
333333
module_target_sat_insights,
334334
):
335335
"""Set up Satellite with iop enabled, verify recommendations remediation type,
336-
and test filtering recommendations by status.
336+
disable the recommendation, check status, then re-enable the recommendation.
337337
338338
:id: 62834698-b4b8-4218-855c-2b2aa584b364
339339
@@ -395,7 +395,6 @@ def test_iop_recommendations_remediation_type_and_status(
395395
)
396396
assert 'Decreased security: OpenSSH config permissions' in result[0]['Name']
397397

398-
399398
@pytest.mark.no_containers
400399
@pytest.mark.rhel_ver_list([settings.content_host.default_rhel_version])
401400
@pytest.mark.parametrize('module_target_sat_insights', [False], ids=['local'], indirect=True)

0 commit comments

Comments
 (0)