mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fixup test_image_store_object_migration.py (#8378)
This PR fixes failure seem in #7344 (comment)
This commit is contained in:
parent
2253a33c1e
commit
7c06d289d2
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user