You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ts...@apache.org on 2013/07/23 14:32:55 UTC

[3/3] git commit: updated refs/heads/4.2 to 6b2c9bf

CLOUDSTACK-3689: Test case test_accounts.TesttemplateHierarchy.test_01_template_hierarchy failed during ListTemplate call.

Signed-off-by: Prasanna Santhanam <ts...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6b2c9bf3
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6b2c9bf3
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6b2c9bf3

Branch: refs/heads/4.2
Commit: 6b2c9bf3ae1653693381431ed2554e7b7e4dfae4
Parents: c44fa2c
Author: Sanjay Tripathi <sa...@citrix.com>
Authored: Mon Jul 22 20:41:34 2013 +0530
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Tue Jul 23 18:01:42 2013 +0530

----------------------------------------------------------------------
 test/integration/component/test_accounts.py | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6b2c9bf3/test/integration/component/test_accounts.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_accounts.py b/test/integration/component/test_accounts.py
index 3c284bd..92f7a6f 100644
--- a/test/integration/component/test_accounts.py
+++ b/test/integration/component/test_accounts.py
@@ -876,10 +876,17 @@ class TestTemplateHierarchy(cloudstackTestCase):
                                             account=cls.account_1.name,
                                             domainid=cls.domain_1.id
                                         )
+
+        # Wait for template to download
+        cls.template.download(cls.api_client)
+
+        # Wait for template status to be changed across
+        time.sleep(60)
+
         cls._cleanup = [
                         cls.account_2,
                         cls.domain_2,
-           cls.template,
+                        cls.template,
                         cls.account_1,
                         cls.domain_1,
                         ]
@@ -945,7 +952,8 @@ class TestTemplateHierarchy(cloudstackTestCase):
         # Verify private service offering is not visible to other domain
         templates = list_templates(
                                     self.apiclient,
-                                    templatefilter='self',
+                                    id=self.template.id,
+                                    templatefilter='all',
                                     account=self.account_2.name,
                                     domainid=self.domain_2.id
                                 )