CLOUDSTACK-8048: Fix test_ss_limits.py

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
Gaurav Aradhye 2014-12-09 10:56:03 +05:30 committed by SrikanteswaraRao Talluri
parent aa84b05491
commit 0977140043

View File

@ -233,7 +233,14 @@ class TestSecondaryStorageLimits(cloudstackTestCase):
except Exception as e:
self.fail("Failed to create template: %s" % e)
templateSize = (template.size / (1024**3))
templates = Template.list(apiclient,
templatefilter=\
self.services["template_2"]["templatefilter"],
id=template.id)
self.assertEqual(validateList(templates)[0],PASS,\
"templates list validation failed")
templateSize = (templates[0].size / (1024**3))
response = matchResourceCount(self.apiclient, templateSize,
resourceType=RESOURCE_SECONDARY_STORAGE,
accountid=self.account.id)