-
Notifications
You must be signed in to change notification settings - Fork 116
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
Wait for product HTTP Proxy update to finish #14269
Conversation
trigger: test-robottelo |
PRT Result
|
PRT Result
|
trigger: test-robottelo |
PRT Result
|
PRT Result
|
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.
ack looks like the latest prt fail is unrelated, prior runs pass, looks good
trigger: test-robottelo |
PRT Result
|
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.
ltgtm ( need to fix code quality issues first )
CI/CQ failure seems unrelated - fails in install requirements with
|
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.
- One optional suggestion to swap argurment as per function/wait_for_tasks definition.
- Would it be possible to assert on return value of function as function returns the list of ForemanTask entities? https://github.com/SatelliteQE/robottelo/blob/master/robottelo/host_helpers/capsule_mixins.py#L29
@@ -272,6 +272,13 @@ def test_positive_assign_http_proxy_to_products(module_org, module_target_sat): | |||
} | |||
) | |||
assert 'Product proxy updated' in res | |||
module_target_sat.wait_for_tasks( |
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 beleive this function returns List of sat.api.ForemanTask entities
, would it be possible to use assersion on return value for this call?
@@ -293,6 +300,13 @@ def test_positive_assign_http_proxy_to_products(module_org, module_target_sat): | |||
{'ids': f"{product_a['id']},{product_b['id']}", 'http-proxy-policy': 'none'} | |||
) | |||
assert 'Product proxy updated' in res | |||
module_target_sat.wait_for_tasks( |
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 beleive this function returns List of sat.api.ForemanTask entities
, would it be possible to use assersion on return value for this call?
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.
Yup it returns a list of found tasks. However, since they are read before the pull loop, some of them are pending. So I'm fine with the subsequential assertion...
d73c742
to
50b09ac
Compare
trigger: test-robottelo |
PRT Result
|
(cherry picked from commit 9012e2f)
(cherry picked from commit 9012e2f)
(cherry picked from commit 9012e2f)
Problem Statement
CLI
test_positive_assign_http_proxy_to_products
is flaky, it looks like the repo properties were not set in time (of assertion).Solution
Wait for the Update repo tasks to finish.
PRT test Cases example
trigger: test-robottelo
pytest: tests/foreman/cli/test_http_proxy.py -k test_positive_assign_http_proxy_to_products