Fixup test_image_store_object_migration.py (#8378)

This PR fixes failure seem in #7344 (comment)
This commit is contained in:
Vishesh 2023-12-20 11:17:41 +05:30 committed by GitHub
parent 2253a33c1e
commit 7c06d289d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]