]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Return 400 if create volume snapshot force parameter is invalid
authorRongze Zhu <zrzhit@gmail.com>
Wed, 12 Sep 2012 10:18:31 +0000 (10:18 +0000)
committerJohn Griffith <john.griffith@solidfire.com>
Fri, 21 Sep 2012 15:39:16 +0000 (09:39 -0600)
commitc678b045c9839ed30e13fe5e7e655e3cb2e2c3f9
tree14a29260a4f743c6625f82fb951413e2ebb996ac
parent5c74bf51f6ef131db7c47606949b99c57cbbe217
Return 400 if create volume snapshot force parameter is invalid

Fixes bug #1014689

* Add is_valid_boolstr function in utils.py
* Add force parameter check in SnapshotsController.create()
* Add unittest for invalid force parameter.

Change-Id: I0f64326f33eb4fad1cf384bd825f56f09e935f40
cinder/api/openstack/volume/snapshots.py
cinder/tests/api/openstack/volume/test_snapshots.py
cinder/utils.py