Skip to content

Commit

Permalink
addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ColeHiggins2 authored and damoore044 committed Dec 4, 2024
1 parent a30e5cd commit 17b96d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/foreman/api/test_rhcloud_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,20 @@ def test_rhcloud_scheduled_insights_sync(
module_target_sat,
):
"""Verify that triggering the InsightsScheduledSync job in Satellite succeeds with no errors
:id: 59f66062-2865-4cca-82bb-8d0501fd40f1
:steps:
1. Prepare machine and upload its data to Insights
2. Sync inventory status using RH Cloud plugin api
3. Trigger the InsightsScheduledSync job manually
4. Assert job succeeds
:expectedresults:
1. Manually triggering the InsightsScheduledSync job succeeds with no errors.
:Verifies: SAT-22626
:
Verifies: SAT-22626
:CaseAutomation: Automated
"""
org = rhcloud_manifest_org
Expand All @@ -319,6 +324,7 @@ def test_rhcloud_scheduled_insights_sync(
task_output = module_target_sat.api.ForemanTask().search(
query={'search': f'id = {inventory_sync["task"]["id"]}'}
)
# Assert that both hosts are synced successfully
assert task_output[0].output['host_statuses']['sync'] == 2
result = module_target_sat.execute(
"foreman-rake console SATELLITE_RH_CLOUD_REQUESTS_DELAY=0 <<< 'ForemanTasks.sync_task(InsightsCloud::Async::InsightsScheduledSync)'"
Expand Down

0 comments on commit 17b96d8

Please sign in to comment.