Skip to content

Commit 7c06d28

Browse files
authored
Fixup test_image_store_object_migration.py (#8378)
This PR fixes failure seem in #7344 (comment)
1 parent 2253a33 commit 7c06d28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/integration/smoke/test_image_store_object_migration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def test_01_browser_migrate_template(self):
148148

149149
storeObjects = originalSecondaryStore.listObjects(self.apiclient, path="template/tmpl/" + str(account_id) + "/" + str(template_id))
150150

151-
self.assertEqual(len(storeObjects), 2, "Check template is uploaded on secondary storage")
151+
self.assertGreaterEqual(len(storeObjects), 2, "Check template is uploaded on secondary storage")
152152

153153
# Migrate template to another secondary storage
154154
secondaryStores = ImageStore.list(self.apiclient, zoneid=self.zone.id)
@@ -173,7 +173,7 @@ def test_01_browser_migrate_template(self):
173173

174174
storeObjects = destSecondaryStore.listObjects(self.apiclient, path="template/tmpl/" + str(account_id) + "/" + str(template_id))
175175

176-
self.assertEqual(len(storeObjects), 2, "Check template is uploaded on destination secondary storage")
176+
self.assertGreaterEqual(len(storeObjects), 2, "Check template is uploaded on destination secondary storage")
177177

178178
def registerTemplate(self, cmd):
179179
temp = self.apiclient.registerTemplate(cmd)[0]

0 commit comments

Comments
 (0)