Skip to content

Commit 7d402c8

Browse files
authored
[6.18.z] iop_check_inventory_upload_absence_refactor (#21400)
1 parent 213a46b commit 7d402c8

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

tests/foreman/ui/test_rhcloud_iop.py

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -253,29 +253,24 @@ def test_iop_recommendations_host_details_e2e(
253253
)
254254

255255

256-
# @pytest.mark.parametrize("module_target_sat_insights", [False], ids=["local"], indirect=True)
257-
def test_rhcloud_inventory_disabled_local_insights(module_target_sat_insights):
256+
@pytest.mark.parametrize("module_target_sat_insights", [False], ids=["local"], indirect=True)
257+
def test_iop_negative_rhcloud_inventory_upload_not_displayed(module_target_sat_insights):
258258
"""Verify that the 'Red Hat Lightspeed > Inventory Upload' navigation item is not available
259259
when the Satellite is configured to use IoP.
260260
261261
:id: 84023ae9-7bc4-4332-9aaf-749d6c48c2d2
262262
263263
:steps:
264-
1. Configure Satellite to use local Insights advisor engine.
265-
2. Navigate to the Insights Recommendations page.
266-
3. Select Insights > Inventory Upload from the navigation menu.
264+
1. Configure Satellite with IOP
265+
2. Check that 'Inventory Upload' is not visible under 'Red Hat Lightspeed'.
267266
268267
:expectedresults:
269-
1. "Inventory Upload" is not visible under "Insights".
270-
271-
:CaseImportance: Medium
272-
273-
:CaseAutomation: Automated
268+
1. "Inventory Upload" is not visible under "Red Hat Lightspeed".
274269
"""
275270
with module_target_sat_insights.ui_session() as session:
276-
insights_view = session.cloudinsights.navigate_to(session.cloudinsights, 'All')
271+
view = session.dashboard.navigate_to(session.dashboard, 'All')
277272
with pytest.raises(Exception, match='not found in navigation tree'):
278-
insights_view.menu.select('Insights', 'Inventory Upload')
273+
view.menu.select('Red Hat Lightspeed', 'Inventory Upload')
279274

280275

281276
@pytest.mark.e2e

0 commit comments

Comments
 (0)