Repository: cloudstack Updated Branches: refs/heads/master a8c75c197 -> abfb469f9
CLOUDSTACK-7442: Fixed template permission issue in test_project_resources.py Signed-off-by: SrikanteswaraRao Talluri <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/abfb469f Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/abfb469f Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/abfb469f Branch: refs/heads/master Commit: abfb469f910b2e16b0d439c57f5878dd5ae46526 Parents: a8c75c1 Author: Gaurav Aradhye <[email protected]> Authored: Wed Sep 3 21:27:53 2014 +0530 Committer: SrikanteswaraRao Talluri <[email protected]> Committed: Thu Sep 4 17:56:50 2014 +0530 ---------------------------------------------------------------------- test/integration/component/test_project_resources.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/abfb469f/test/integration/component/test_project_resources.py ---------------------------------------------------------------------- diff --git a/test/integration/component/test_project_resources.py b/test/integration/component/test_project_resources.py index e769860..cf4e134 100644 --- a/test/integration/component/test_project_resources.py +++ b/test/integration/component/test_project_resources.py @@ -586,6 +586,11 @@ class TestTemplates(cloudstackTestCase): cls.api_client, cls.services["service_offering"] ) + cls.userapiclient = cls.testClient.getUserApiClient( + UserName=cls.account.name, + DomainName=cls.domain.name + ) + cls._cleanup = [ cls.project, cls.service_offering, @@ -722,10 +727,9 @@ class TestTemplates(cloudstackTestCase): self.debug("Creating template from volume: %s" % volume.id) # Create a template from the ROOTDISK template_1 = Template.create( - self.apiclient, + self.userapiclient, self.services["template"], - volumeid=volume.id, - projectid=self.project.id + volumeid=volume.id ) self.cleanup.append(template_1)
