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

[6.14.z] change a way to upload content into satellite #14404

Conversation

Satellite-QE
Copy link
Collaborator

Cherrypick of PR: #14393

Problem Statement

Regression- In repository api tests, content was uploaded as a file named content (can see on web ui) but unabled to search uploaded file content using api call.

Error-

tests/foreman/api/test_repository.py:2304: in test_positive_upload_file_to_file_repo
    assert filesearch[0].name == constants.RPM_TO_UPLOAD
E   IndexError: list index out of range

Solution

By using open context manager able to upload content and search using api call.

Related Issues

N/A

@Satellite-QE Satellite-QE added 6.14.z Introduced in or relating directly to Satellite 6.14 Auto_Cherry_Picked Automatically cherrypicked PR using GHA No-CherryPick PR doesnt need CherryPick to previous branches labels Mar 14, 2024
@Satellite-QE
Copy link
Collaborator Author

trigger: test-robottelo
pytest: tests/foreman/api/test_repository.py -k test_positive_upload_file_to_file_repo

@Satellite-QE Satellite-QE added the AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing label Mar 14, 2024
@Gauravtalreja1
Copy link
Collaborator

trigger: test-robottelo
pytest: tests/foreman/api/test_repository.py -k test_positive_upload_file_to_file_repo

@Satellite-QE
Copy link
Collaborator Author

PRT Result

Build Number: 6093
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/api/test_repository.py -k test_positive_upload_file_to_file_repo --external-logging
Test Result : =========== 1 passed, 168 deselected, 1 warning in 701.23s (0:11:41) ===========

@Satellite-QE Satellite-QE added the PRT-Passed Indicates that latest PRT run is passed for the PR label Mar 15, 2024
@Satellite-QE Satellite-QE merged commit 3f57a77 into 6.14.z Mar 15, 2024
25 of 26 checks passed
@Satellite-QE Satellite-QE deleted the cherry-pick-6.14.z-b950e4880be73c5bfed54e90f27594dd6f51ad61 branch March 15, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.14.z Introduced in or relating directly to Satellite 6.14 Auto_Cherry_Picked Automatically cherrypicked PR using GHA AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing No-CherryPick PR doesnt need CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants