From 5dc985b7498b91e52e447efb65d5f21a7b6edd2c Mon Sep 17 00:00:00 2001 From: Vladimir Sedmik Date: Fri, 6 Oct 2023 12:00:58 +0200 Subject: [PATCH] Fix capsule test by CVV sort (cherry picked from commit 35252d16b824cd4f1313d944410ec5089408dfbb) --- tests/foreman/api/test_capsulecontent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/foreman/api/test_capsulecontent.py b/tests/foreman/api/test_capsulecontent.py index 120b0c0354e..cdc388fd149 100644 --- a/tests/foreman/api/test_capsulecontent.py +++ b/tests/foreman/api/test_capsulecontent.py @@ -297,6 +297,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()