Skip to content

Commit d44222e

Browse files
committed
Fix failing tests and fixture
1 parent 60fba3b commit d44222e

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tests/foreman/ui/test_rhcloud_iop.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def test_rhcloud_inventory_disabled_local_insights(module_target_sat_insights):
279279
@pytest.mark.pit_client
280280
@pytest.mark.no_containers
281281
@pytest.mark.rhel_ver_match(r'^(?![78]).*')
282-
@pytest.mark.parametrize('module_target_sat_insights', [False], ids=['local'], indirect=True)
282+
@pytest.mark.parametrize('module_target_sat_insights', [True], ids=['local'], indirect=True)
283283
def test_iop_recommendations_remediation_type_and_status(
284284
rhel_insights_vm,
285285
rhcloud_manifest_org,
@@ -336,14 +336,9 @@ def test_iop_recommendations_remediation_type_and_status(
336336
assert result[0]['Name'] == OPENSSH_RECOMMENDATION
337337
assert result[0]['Remediation type'] == 'Playbook'
338338

339-
# Verify that enabled recommendations are greater than 0
340-
result = session.recommendationstab.apply_filter("Status", "Enabled")
341-
assert len(result) > 0
342-
343339
# Disable recommendation
344-
session.recommendationstab.disable_recommendation_for_system(
345-
recommendation_name=OPENSSH_RECOMMENDATION, hostname=rhel_insights_vm.hostname
346-
)
340+
session.recommendationstab.disable_recommendation(
341+
recommendation_name=OPENSSH_RECOMMENDATION)
347342
# Verify that the disabled recommendation is filtered
348343
result = session.recommendationstab.apply_filter("Status", "Disabled")
349344
assert 'Decreased security: OpenSSH config permissions' in result[0]['Name']

0 commit comments

Comments
 (0)