-
Notifications
You must be signed in to change notification settings - Fork 115
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
[CV Eval] Test Coverage for ccv interaction with incremental update #15525
Conversation
trigger: test-robottelo |
PRT Result
|
} | ||
) | ||
# Gives time for the incremental update to finish, and propagate a publish of the composive cv | ||
time.sleep(2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see "Publish CV" task being spawned after incremental update. Should we wait for them to finish instead of the sleep?
time.sleep(2) | |
module_target_sat.wait_for_tasks( | |
search_query=( | |
f'Actions::Katello::ContentView::Publish and organization_id = {module_org.id}' | |
), | |
max_tries=5, | |
poll_rate=10, | |
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is definitely a more deterministic way to do this. I'll give it a try. Should be consistent.
trigger: test-robottelo |
PRT Result
|
…atelliteQE#15525) * CV Eval BZ coverage for ccv inc update * Remove sleep, and instead wait on cv publish task
Problem Statement
Adds coverage for https://bugzilla.redhat.com/show_bug.cgi?id=1974225 / https://issues.redhat.com/browse/SATQE-17141
Related Issues
There is one usage of time.sleep(2) - this is to allow the incremental update to propagate, and trigger the CCV publish, but there's probably a better way for this to be done.
PRT test Cases example
trigger: test-robottelo
pytest: tests/foreman/cli/test_contentview.py -k 'test_ccv_inc_update_autopublish'