Skip to content

Commit

Permalink
Fix convert2rhel tests by CVV sort and other fixes (SatelliteQE#12959)
Browse files Browse the repository at this point in the history
Fix convert2rhel tests by CVV sort

Signed-off-by: Gaurav Talreja <[email protected]>
  • Loading branch information
Gauravtalreja1 authored and shweta83 committed Apr 10, 2024
1 parent 1b2c825 commit 4dc2a70
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 4dc2a70

Please sign in to comment.