Skip to content

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sambible
Copy link
Contributor

@sambible sambible commented Mar 19, 2025

Updates publish entity to support multi environment promote.

Supports: SatelliteQE/robottelo#17949

Copy link
Contributor

@LadislavVasina1 LadislavVasina1 left a 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

@LadislavVasina1 LadislavVasina1 requested a review from a team March 20, 2025 07:43
Copy link
Contributor

@vsedmik vsedmik left a 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.

Comment on lines +55 to +62
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)
Copy link
Contributor

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

Suggested change
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.16.z 6.17.z CherryPick PR needs CherryPick to previous branches entity Related to entity coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants