Skip to content

Commit aed2e40

Browse files
Fix virt_who test case to inventory report generation (#20864)
1 parent ef77258 commit aed2e40

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/foreman/virtwho/ui/test_esx_sca.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,14 +693,14 @@ def test_positive_minimal_report_hypervisor(
693693
)
694694

695695
timestamp = (datetime.now(UTC) - timedelta(minutes=2)).strftime('%Y-%m-%d %H:%M')
696-
org_session.cloudinventory.generate_report(module_sca_manifest_org.name)
696+
org_session.cloudinventory.generate_and_upload_report(module_sca_manifest_org.name)
697697
# wait_for_tasks report generation task to finish
698698
wait_for(
699699
lambda: (
700700
module_target_sat.api.ForemanTask()
701701
.search(
702702
query={
703-
'search': f'label = ForemanInventoryUpload::Async::GenerateReportJob '
703+
'search': f'label = ForemanInventoryUpload::Async::HostInventoryReportJob '
704704
f'and started_at >= "{timestamp}"'
705705
}
706706
)[0]
@@ -713,7 +713,7 @@ def test_positive_minimal_report_hypervisor(
713713
handle_exception=True,
714714
)
715715
# download report
716-
report_path = org_session.cloudinventory.download_report(module_sca_manifest_org.name)
716+
report_path = org_session.cloudinventory.download_report_only(module_sca_manifest_org.name)
717717
json_data = get_report_data(report_path)
718718
host_data = [item for item in json_data['hosts']]
719719
# Verify that guest hostname is NOT in report

0 commit comments

Comments
 (0)