Skip to content

Commit abfb469

Browse files
Gaurav AradhyeSrikanteswaraRao Talluri
authored andcommitted
CLOUDSTACK-7442: Fixed template permission issue in test_project_resources.py
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
1 parent a8c75c1 commit abfb469

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

test/integration/component/test_project_resources.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,11 @@ def setUpClass(cls):
586586
cls.api_client,
587587
cls.services["service_offering"]
588588
)
589+
cls.userapiclient = cls.testClient.getUserApiClient(
590+
UserName=cls.account.name,
591+
DomainName=cls.domain.name
592+
)
593+
589594
cls._cleanup = [
590595
cls.project,
591596
cls.service_offering,
@@ -722,10 +727,9 @@ def test_05_use_private_template_in_project(self):
722727
self.debug("Creating template from volume: %s" % volume.id)
723728
# Create a template from the ROOTDISK
724729
template_1 = Template.create(
725-
self.apiclient,
730+
self.userapiclient,
726731
self.services["template"],
727-
volumeid=volume.id,
728-
projectid=self.project.id
732+
volumeid=volume.id
729733
)
730734

731735
self.cleanup.append(template_1)

0 commit comments

Comments
 (0)