mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-2472: Fix unresolved reference to max_value
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
1736031fcb
commit
b74d13f9b1
@ -193,7 +193,7 @@ class TestProjectLimits(cloudstackTestCase):
|
|||||||
# Also, verify resource limits for the project are independent of
|
# Also, verify resource limits for the project are independent of
|
||||||
# account resource limits
|
# account resource limits
|
||||||
# 3. Increase Projects Resources limits above domains limit. Verify
|
# 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
|
# 4. Create Resource more than its set limit for a project. Verify
|
||||||
# resource allocation should fail giving proper message
|
# resource allocation should fail giving proper message
|
||||||
|
|
||||||
@ -312,6 +312,7 @@ class TestProjectLimits(cloudstackTestCase):
|
|||||||
max=2
|
max=2
|
||||||
)
|
)
|
||||||
with self.assertRaises(Exception):
|
with self.assertRaises(Exception):
|
||||||
|
max_value = 3
|
||||||
self.debug(
|
self.debug(
|
||||||
"Attempting to update project: %s resource limit to: %s" % (
|
"Attempting to update project: %s resource limit to: %s" % (
|
||||||
project.id,
|
project.id,
|
||||||
@ -321,7 +322,7 @@ class TestProjectLimits(cloudstackTestCase):
|
|||||||
update_resource_limit(
|
update_resource_limit(
|
||||||
self.apiclient,
|
self.apiclient,
|
||||||
resource.resourcetype,
|
resource.resourcetype,
|
||||||
max=3,
|
max=max_value,
|
||||||
projectid=project.id
|
projectid=project.id
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user