CLOUDSTACK-7442: Fixed template permission issue in test_project_resources.py

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
Gaurav Aradhye 2014-09-03 21:27:53 +05:30 committed by SrikanteswaraRao Talluri
parent a8c75c197e
commit abfb469f91
1 changed files with 7 additions and 3 deletions

View File

@ -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)