Skip to content

Commit

Permalink
Stream fix errata:UI (test_end_to_end) (#12978)
Browse files Browse the repository at this point in the history
* Updates for UI errata e2e

* Check bulk generate applicability task

* Cleanup between parameterized runs

* Addressing comments
  • Loading branch information
damoore044 authored Nov 9, 2023
1 parent 034dcac commit 783549a
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 84 deletions.
10 changes: 8 additions & 2 deletions robottelo/cli/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1692,13 +1692,19 @@ def setup_org_for_a_custom_repo(options=None):
raise CLIFactoryError(f'Failed to publish new version of content view\n{err.msg}')
# Get the content view info
cv_info = ContentView.info({'id': cv_id})
lce_promoted = cv_info['lifecycle-environments']
assert len(cv_info['versions']) > 0
cv_info['versions'].sort(key=lambda version: version['id'])
cvv = cv_info['versions'][-1]
lce_promoted = cv_info['lifecycle-environments']
# Promote version to next env
try:
if env_id not in [int(lce['id']) for lce in lce_promoted]:
ContentView.version_promote(
{'id': cvv['id'], 'organization-id': org_id, 'to-lifecycle-environment-id': env_id}
{
'id': cvv['id'],
'organization-id': org_id,
'to-lifecycle-environment-id': env_id,
}
)
except CLIReturnCodeError as err:
raise CLIFactoryError(f'Failed to promote version to next environment\n{err.msg}')
Expand Down
4 changes: 3 additions & 1 deletion robottelo/host_helpers/cli_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,10 @@ def setup_org_for_a_custom_repo(self, options=None):
raise CLIFactoryError(f'Failed to publish new version of content view\n{err.msg}')
# Get the version id
cv_info = self._satellite.cli.ContentView.info({'id': cv_id})
lce_promoted = cv_info['lifecycle-environments']
assert len(cv_info['versions']) > 0
cv_info['versions'].sort(key=lambda version: version['id'])
cvv = cv_info['versions'][-1]
lce_promoted = cv_info['lifecycle-environments']
# Promote version to next env
try:
if env_id not in [int(lce['id']) for lce in lce_promoted]:
Expand Down
Loading

0 comments on commit 783549a

Please sign in to comment.