From 0977140043e2d7465919ad7a10c57ab63ca05b76 Mon Sep 17 00:00:00 2001 From: Gaurav Aradhye Date: Tue, 9 Dec 2014 10:56:03 +0530 Subject: [PATCH] CLOUDSTACK-8048: Fix test_ss_limits.py Signed-off-by: SrikanteswaraRao Talluri --- test/integration/component/test_ss_limits.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/integration/component/test_ss_limits.py b/test/integration/component/test_ss_limits.py index 4d6efc4eb33..c83a7f58f44 100644 --- a/test/integration/component/test_ss_limits.py +++ b/test/integration/component/test_ss_limits.py @@ -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)