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] Missing content ID test #12784

Conversation

Satellite-QE
Copy link
Collaborator

Cherrypick of PR: #12764

Simple test for a pretty complicated BZ. Basically, this creates a repository and then deletes the Upstream URL, which in the BZ case triggered the missing content ID issues. It then goes on to make sure you can both update the URL, and delete the repo, cases which were impacted in the BZ.

The sleep at the beginning is a simple solution to a bit of a weird problem, where when creating a repo, an asynchronous task to generate the metadata is kicked off. If we adjust the URL before that's done, it will collide with that task and error out. Sleeping for 5s gets around this case.

* Test checking that missing content id works properly

* Add sleep to wait on metadata generation

(cherry picked from commit 3cfc6f0)
@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 Oct 2, 2023
@Satellite-QE
Copy link
Collaborator Author

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

@Satellite-QE Satellite-QE added the AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing label Oct 2, 2023
@Satellite-QE Satellite-QE merged commit 6a4df7c into 6.14.z Oct 2, 2023
21 checks passed
@Satellite-QE Satellite-QE deleted the cherry-pick-6.14.z-3cfc6f0a1958af4124662f62bfe8603aa238fc7f branch October 2, 2023 16:39
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants