From f561e126b29b38df3bbc533cc2ce6fb7e56514b9 Mon Sep 17 00:00:00 2001 From: Ashutosh K Date: Wed, 8 Jan 2014 11:10:04 +0530 Subject: [PATCH] CLOUDSTACK-5802: Increased timeout for template state to become ready, improved assertion messages --- test/integration/component/test_blocker_bugs.py | 4 ++-- test/integration/component/test_templates.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/integration/component/test_blocker_bugs.py b/test/integration/component/test_blocker_bugs.py index 5488ddbf6e7..04a26562d09 100644 --- a/test/integration/component/test_blocker_bugs.py +++ b/test/integration/component/test_blocker_bugs.py @@ -88,7 +88,7 @@ class Services: }, "ostype": 'CentOS 5.3 (64-bit)', # Cent OS 5.3 (64 bit) - "sleep": 60, + "sleep": 180, } @@ -216,7 +216,7 @@ class TestTemplate(cloudstackTestCase): self.assertEqual( template_response.isready, True, - "Check display text of newly created template" + "Template state is not ready, it is %s" % template_response.isready ) # Deploy new virtual machine using template diff --git a/test/integration/component/test_templates.py b/test/integration/component/test_templates.py index af86d32a3bd..04ec73b6636 100644 --- a/test/integration/component/test_templates.py +++ b/test/integration/component/test_templates.py @@ -232,7 +232,7 @@ class TestCreateTemplate(cloudstackTestCase): self.assertEqual( template_response.isready, True, - "Check display text of newly created template" + "Template state is not ready, it is %s" % template_response.isready ) # Deploy new virtual machine using template @@ -456,7 +456,8 @@ class TestTemplates(cloudstackTestCase): self.assertEqual( template_response.id, self.template.id, - "Check display text of updated template" + "Template id %s in the list is not matching with created template id %s" % + (template_response.id, self.template.id) ) self.debug("Deleting template: %s" % self.template)