Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix get_downloads_list which is causing save_downloaded_file to fail #1098

Merged

Conversation

jameerpathan111
Copy link
Contributor

@jameerpathan111 jameerpathan111 commented Jan 2, 2024

Fix get_downloads_list which is causing save_downloaded_file to fail. Fixed issue and removed some unnecessary code.

tests/foreman/ui/test_rhcloud_inventory.py:209: in test_rh_cloud_inventory_settings
    report_path = session.cloudinventory.download_report(org.name)
../../lib64/python3.11/site-packages/airgun/entities/cloud_inventory.py:43: in download_report
    return self.browser.save_downloaded_file()
../../lib64/python3.11/site-packages/airgun/browser.py:430: in save_downloaded_file
    file_uri = files[0]
E   IndexError: list index out of range

@jameerpathan111 jameerpathan111 added CherryPick PR needs CherryPick to previous branches 6.13.z AutoMerge_Cherry_Picked Automatically merge the PR is PRT and all checks are passing 6.14.z 6.15.z labels Jan 2, 2024
@jameerpathan111 jameerpathan111 self-assigned this Jan 2, 2024
@jameerpathan111
Copy link
Contributor Author

trigger: test-robottelo
pytest: tests/foreman/ui/test_rhcloud_inventory.py -k test_rh_cloud_inventory_settings

@omkarkhatavkar omkarkhatavkar merged commit b72a45d into SatelliteQE:master Jan 3, 2024
5 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 3, 2024
github-actions bot pushed a commit that referenced this pull request Jan 3, 2024
github-actions bot pushed a commit that referenced this pull request Jan 3, 2024
omkarkhatavkar pushed a commit that referenced this pull request Jan 4, 2024
omkarkhatavkar pushed a commit that referenced this pull request Jan 4, 2024
omkarkhatavkar pushed a commit that referenced this pull request Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.13.z 6.14.z 6.15.z AutoMerge_Cherry_Picked Automatically merge the PR is PRT and all checks are passing CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants