]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add valid check and unit tests on quota class
authorling-yun <zengyunling@huawei.com>
Mon, 28 Oct 2013 07:38:35 +0000 (15:38 +0800)
committerling-yun <zengyunling@huawei.com>
Fri, 15 Nov 2013 13:39:00 +0000 (21:39 +0800)
commit8b6d51ea04a65d846b0e92a11e191327360d7427
treeb229d026e6d37b536f1d256f369fdc7e181c2d93
parent64c6eea42a3df46dd7f3d171f8f5d8de06e4692c
Add valid check and unit tests on quota class

1.Cinder quota class hard_limit’s value should larger than -1 (-1 is a flag
value for unlimited).
2.Add unit tests for quota class.

Closes-bug: #1245360

Change-Id: Ie483db1bdbd4fac875de26abab8ebebd96f4938b
cinder/api/contrib/quota_classes.py
cinder/tests/api/contrib/test_quotas_classes.py [new file with mode: 0644]
cinder/tests/policy.json