mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7692: Fixed template register issue in test_project_usage.py
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
parent
b277b1abd8
commit
5d37f37436
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue