Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EE7E717830 for ; Tue, 4 Nov 2014 06:31:23 +0000 (UTC) Received: (qmail 88716 invoked by uid 500); 4 Nov 2014 06:31:17 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 88448 invoked by uid 500); 4 Nov 2014 06:31:17 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 88415 invoked by uid 99); 4 Nov 2014 06:31:17 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2014 06:31:17 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 503F5A08481; Tue, 4 Nov 2014 06:31:17 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: talluri@apache.org To: commits@cloudstack.apache.org Date: Tue, 04 Nov 2014 06:31:18 -0000 Message-Id: <05ced19776ae40f084659dc727d916b2@git.apache.org> In-Reply-To: <0d4546751e7d43e1b58ada6f6faec2eb@git.apache.org> References: <0d4546751e7d43e1b58ada6f6faec2eb@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [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 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 Authored: Thu Oct 9 15:14:30 2014 +0530 Committer: SrikanteswaraRao Talluri 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