Repository: cloudstack Updated Branches: refs/heads/master faaf6b1f9 -> b40060816
CLOUDSTACK-8639:fixing calculation mistakes in component/test_ss_domain_limits.py This closes #595 Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b4006081 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b4006081 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b4006081 Branch: refs/heads/master Commit: b4006081623a447c172f77008d44678aac49adc8 Parents: faaf6b1 Author: nitt10prashant <[email protected]> Authored: Wed Jul 15 18:33:00 2015 +0530 Committer: sanjeev <[email protected]> Committed: Mon Jul 20 14:41:52 2015 +0530 ---------------------------------------------------------------------- test/integration/component/test_ss_domain_limits.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b4006081/test/integration/component/test_ss_domain_limits.py ---------------------------------------------------------------------- diff --git a/test/integration/component/test_ss_domain_limits.py b/test/integration/component/test_ss_domain_limits.py index 2591d2f..0d9138a 100644 --- a/test/integration/component/test_ss_domain_limits.py +++ b/test/integration/component/test_ss_domain_limits.py @@ -559,7 +559,9 @@ class TestDeleteAccount(cloudstackTestCase): self.assertFalse(result[0], result[1]) self.assertTrue(result[2], "Resource count does not match") - expectedCount *= 2 + self.templateSize = int((int(templates[0].size)*2) / (1024**3)) + + expectedCount = self.templateSize result = isDomainResourceCountEqualToExpectedCount( self.apiclient, self.parent_domain.id, expectedCount, RESOURCE_SECONDARY_STORAGE)
