You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by sh...@apache.org on 2023/12/20 05:47:46 UTC
(cloudstack) branch main updated: Fixup test_image_store_object_migration.py (#8378)
This is an automated email from the ASF dual-hosted git repository.
shwstppr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 7c06d289d28 Fixup test_image_store_object_migration.py (#8378)
7c06d289d28 is described below
commit 7c06d289d283c8184ec9ae39fde72de0395541b7
Author: Vishesh <vi...@gmail.com>
AuthorDate: Wed Dec 20 11:17:41 2023 +0530
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]