Skip to content

Commit

Permalink
[6.12.z] Fix capsule test by CVV sort (#12832)
Browse files Browse the repository at this point in the history
Fix capsule test by CVV sort

(cherry picked from commit 35252d1)

Co-authored-by: Vladimir Sedmik <[email protected]>
  • Loading branch information
Satellite-QE and vsedmik authored Oct 6, 2023
1 parent 89ac755 commit aaa115b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/foreman/api/test_capsulecontent.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ def test_positive_sync_updated_repo(
cv = cv.read()
assert len(cv.version) == 2

cv.version.sort(key=lambda version: version.id)
cvv = cv.version[-1].read()
cvv.promote(data={'environment_ids': function_lce.id})
cvv = cvv.read()
Expand Down

0 comments on commit aaa115b

Please sign in to comment.