From 7c06d289d283c8184ec9ae39fde72de0395541b7 Mon Sep 17 00:00:00 2001 From: Vishesh Date: Wed, 20 Dec 2023 11:17:41 +0530 Subject: [PATCH] Fixup test_image_store_object_migration.py (#8378) This PR fixes failure seem in #7344 (comment) --- test/integration/smoke/test_image_store_object_migration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/smoke/test_image_store_object_migration.py b/test/integration/smoke/test_image_store_object_migration.py index de504aec810..fcd10d70e2e 100644 --- a/test/integration/smoke/test_image_store_object_migration.py +++ b/test/integration/smoke/test_image_store_object_migration.py @@ -148,7 +148,7 @@ class TestImageStoreObjectMigration(cloudstackTestCase): storeObjects = originalSecondaryStore.listObjects(self.apiclient, path="template/tmpl/" + str(account_id) + "/" + str(template_id)) - self.assertEqual(len(storeObjects), 2, "Check template is uploaded on secondary storage") + self.assertGreaterEqual(len(storeObjects), 2, "Check template is uploaded on secondary storage") # Migrate template to another secondary storage secondaryStores = ImageStore.list(self.apiclient, zoneid=self.zone.id) @@ -173,7 +173,7 @@ class TestImageStoreObjectMigration(cloudstackTestCase): storeObjects = destSecondaryStore.listObjects(self.apiclient, path="template/tmpl/" + str(account_id) + "/" + str(template_id)) - self.assertEqual(len(storeObjects), 2, "Check template is uploaded on destination secondary storage") + self.assertGreaterEqual(len(storeObjects), 2, "Check template is uploaded on destination secondary storage") def registerTemplate(self, cmd): temp = self.apiclient.registerTemplate(cmd)[0]