You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ta...@apache.org on 2014/11/04 07:31:18 UTC
[02/11] git commit: updated refs/heads/master to 8b636bd
CLOUDSTACK-7692: Fixed template register issue in test_project_usage.py
Signed-off-by: SrikanteswaraRao Talluri <ta...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/5d37f374
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/5d37f374
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/5d37f374
Branch: refs/heads/master
Commit: 5d37f374366c5967a5f2d96577d022464bf9694c
Parents: b277b1a
Author: Gaurav Aradhye <ga...@clogeny.com>
Authored: Thu Oct 9 15:14:30 2014 +0530
Committer: SrikanteswaraRao Talluri <ta...@apache.org>
Committed: Tue Nov 4 11:23:01 2014 +0530
----------------------------------------------------------------------
test/integration/component/test_project_usage.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5d37f374/test/integration/component/test_project_usage.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_project_usage.py b/test/integration/component/test_project_usage.py
index 3262e40..2627504 100644
--- a/test/integration/component/test_project_usage.py
+++ b/test/integration/component/test_project_usage.py
@@ -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