CLOUDSTACK-7692: Fixed template register issue in test_project_usage.py

Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
Gaurav Aradhye 2014-10-09 15:14:30 +05:30 committed by SrikanteswaraRao Talluri
parent b277b1abd8
commit 5d37f37436
1 changed files with 4 additions and 1 deletions

View File

@ -712,6 +712,9 @@ class TestTemplateUsage(cloudstackTestCase):
domainid=cls.domain.id
)
cls._cleanup.append(cls.account)
cls.userapiclient = cls.testClient.getUserApiClient(
UserName=cls.account.name,
DomainName=cls.account.domain)
cls.services["account"] = cls.account.name
cls.project = Project.create(
@ -789,7 +792,7 @@ class TestTemplateUsage(cloudstackTestCase):
#Create template from Virtual machine and Volume ID
self.template = Template.create(
self.apiclient,
self.userapiclient,
self.services["templates"],
self.volume.id,
projectid=self.project.id