commit | 7ef0b8f1246074cf78c94314aab4f804be01a1e7 | [log] [tgz] |
---|---|---|
author | Ken'ichi Ohmichi <ken-oomichi@wx.jp.nec.com> | Mon Oct 03 18:49:13 2016 -0700 |
committer | Ken'ichi Ohmichi <ken-oomichi@wx.jp.nec.com> | Wed Nov 02 10:38:31 2016 -0700 |
tree | 007584818f5dae508a5e5e77201c33d2c7c45711 | |
parent | bddb20de1313f61d5dbac8444901fbb21d554178 [diff] |
Add negative tests about update-volume API As the following part of API-WG guidline[1], If a request contains a reference to a nonexistent resource in the body (not URI), the code should be 400 Bad Request. Do not use 404 NotFound because :rfc:`7231#section-6.5.4` (section 6.5.4) mentions the origin server did not find a current representation for the target resource for 404 and representation for the target resource means a URI Nova should return a NotFound(404) on this first test case, but it should return a BadRequest response(400) in this second case, because the second volume id is specified in a request body. [1]: https://github.com/openstack/api-wg/blob/master/guidelines/http.rst#failure-code-clarifications Depends-On: Ib781b116f5af713d64b5880858cc4f81c3da3977 Related-Bug: #1629110 Change-Id: I409c4fd53e272f6b15fb2a34068e3d003317290e