-
Notifications
You must be signed in to change notification settings - Fork 66
Add multi promote support to publish/promote entity #1763
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
base: master
Are you sure you want to change the base?
Conversation
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.
Codewise looks good, let's wait for PRT to go through
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.
Suggested a small proposal for code de-duplication, if possible.
if promote and not multi_promote: | ||
view.promote.click() | ||
wait_for(lambda: view.lce_selector.is_displayed, timeout=10) | ||
view.lce_selector.fill({lce: True}) | ||
if promote and multi_promote: | ||
view.promote.click() | ||
wait_for(lambda: view.lce_selector.is_displayed, timeout=10) | ||
view.lce_selector.fill(lce) |
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.
Could we use the lce
being set (not None
) as a flag that we want to do the multi-promote?
Something like
if promote and not multi_promote: | |
view.promote.click() | |
wait_for(lambda: view.lce_selector.is_displayed, timeout=10) | |
view.lce_selector.fill({lce: True}) | |
if promote and multi_promote: | |
view.promote.click() | |
wait_for(lambda: view.lce_selector.is_displayed, timeout=10) | |
view.lce_selector.fill(lce) | |
if promote: | |
view.promote.click() | |
wait_for(lambda: view.lce_selector.is_displayed, timeout=10) | |
view.lce_selector.fill(lce or {lce: True}) |
So when lce=None
the {lce: True}
is passed to the fill
method, otherwise the lce
is passed.
Updates publish entity to support multi environment promote.
Supports: SatelliteQE/robottelo#17949