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 DA279D2A7 for ; Tue, 21 May 2013 14:03:13 +0000 (UTC) Received: (qmail 21310 invoked by uid 500); 21 May 2013 14:03:14 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 21116 invoked by uid 500); 21 May 2013 14:03:13 -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 21085 invoked by uid 99); 21 May 2013 14:03:13 -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, 21 May 2013 14:03:13 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id E0B6D891107; Tue, 21 May 2013 14:03:12 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: tsp@apache.org To: commits@cloudstack.apache.org Date: Tue, 21 May 2013 14:03:13 -0000 Message-Id: <721573a898d745ab9423910a769b9424@git.apache.org> In-Reply-To: <5e19200b587d46d394e03a718fee18f3@git.apache.org> References: <5e19200b587d46d394e03a718fee18f3@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] git commit: updated refs/heads/master to b74d13f CLOUDSTACK-2472: Fix unresolved reference to max_value Signed-off-by: Prasanna Santhanam Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b74d13f9 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b74d13f9 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b74d13f9 Branch: refs/heads/master Commit: b74d13f9b1daf7e09fa3fa23d963b20ed12e588a Parents: 1736031 Author: Girish Shilamkar Authored: Tue May 21 16:38:39 2013 +0530 Committer: Prasanna Santhanam Committed: Tue May 21 19:31:52 2013 +0530 ---------------------------------------------------------------------- test/integration/component/test_project_limits.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b74d13f9/test/integration/component/test_project_limits.py ---------------------------------------------------------------------- diff --git a/test/integration/component/test_project_limits.py b/test/integration/component/test_project_limits.py index 17ddfc6..9184dca 100644 --- a/test/integration/component/test_project_limits.py +++ b/test/integration/component/test_project_limits.py @@ -193,7 +193,7 @@ class TestProjectLimits(cloudstackTestCase): # Also, verify resource limits for the project are independent of # account resource limits # 3. Increase Projects Resources limits above domains limit. Verify - # project can’t have more resources than domain level limit allows. + # project can't have more resources than domain level limit allows. # 4. Create Resource more than its set limit for a project. Verify # resource allocation should fail giving proper message @@ -312,6 +312,7 @@ class TestProjectLimits(cloudstackTestCase): max=2 ) with self.assertRaises(Exception): + max_value = 3 self.debug( "Attempting to update project: %s resource limit to: %s" % ( project.id, @@ -321,7 +322,7 @@ class TestProjectLimits(cloudstackTestCase): update_resource_limit( self.apiclient, resource.resourcetype, - max=3, + max=max_value, projectid=project.id ) return