Skip to content

Commit

Permalink
Fix convert2rhel tests by CVV sort
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Talreja <[email protected]>
  • Loading branch information
Gauravtalreja1 committed Nov 3, 2023
1 parent 17d6f86 commit 00ed217
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/foreman/api/test_convert2rhel.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def update_cv(sat, cv, lce, repos):
cv = sat.api.ContentView(id=cv.id, repository=repos).update(["repository"])
cv.publish()
cv = cv.read()
cv.version.sort(key=lambda version: version.id)
cv.version[-1].promote(data={'environment_ids': lce.id, 'force': False})
return cv

Expand Down

0 comments on commit 00ed217

Please sign in to comment.