Repository: cloudstack
Updated Branches:
  refs/heads/4.9 f03015b25 -> b931b798f


CLOUDSTACK-9594: Fix regression in test_templates

Fixes regression in component test `test_templates.py`

Signed-off-by: Rohit Yadav <rohit.ya...@shapeblue.com>


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

Branch: refs/heads/4.9
Commit: ae32aa13ed2b484194b7df31ac8b531c2955a51c
Parents: 8769597
Author: Rohit Yadav <rohit.ya...@shapeblue.com>
Authored: Fri Dec 9 11:57:40 2016 +0530
Committer: Rohit Yadav <rohit.ya...@shapeblue.com>
Committed: Fri Dec 9 11:57:40 2016 +0530

----------------------------------------------------------------------
 test/integration/component/test_templates.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ae32aa13/test/integration/component/test_templates.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_templates.py 
b/test/integration/component/test_templates.py
index fb56011..4e9a868 100644
--- a/test/integration/component/test_templates.py
+++ b/test/integration/component/test_templates.py
@@ -658,7 +658,7 @@ class TestListTemplate(cloudstackTestCase):
                                     UserName=self.account.name,
                                     DomainName=self.account.domain)
         try:
-            list_template_response = Template.list(self.user_api_client, 
templatefilter='all')
+            list_template_response = Template.list(user_api_client, 
templatefilter='all')
             self.fail("Regular User is able to use templatefilter='all' in 
listTemplates API call")
         except Exception as e:
             self.debug("ListTemplates API with templatefilter='all' is not 
permitted for normal user")
@@ -674,6 +674,6 @@ class TestListTemplate(cloudstackTestCase):
                                     UserName=self.newdomain_account.name,
                                     DomainName=self.newdomain_account.domain)
         try:
-            list_template_response = 
Template.list(self.domain_user_api_client, templatefilter='all')
+            list_template_response = Template.list(domain_user_api_client, 
templatefilter='all')
         except Exception as e:
             self.fail("Domain admin should be able to use templatefilter='all' 
in listTemplates API call")

Reply via email to