commit | bb1ebaa69b2214b9298cc8bbb9942e0ab104796b | [log] [tgz] |
---|---|---|
author | Felipe Monteiro <felipe.monteiro@att.com> | Tue Feb 27 09:15:14 2018 -0500 |
committer | Felipe Monteiro <felipe.monteiro@att.com> | Tue Feb 27 09:15:14 2018 -0500 |
tree | 7d2fd92d72e3825fca238e3f3fe8e9b829527bad | |
parent | 938471ba9e0d1a0de617aa0068b6242eb677ebcf [diff] |
Fix test_limits_rbac not checking for expected response This is to fix test_show_limits test under test_limits_rbac in volume module which is currently expecting a fatal exception to be raised by the Cinder server following failed authorization. However, this assumption is false because this endpoint uses non-fatal authorization [0] to inject additional attributes into the response body following successfuly authorization. Thus, it is necessary Patrole side to verify that the expected attributes are present in the response body, as expecting a 403 is a false assumption. [0] https://github.com/openstack/cinder/blob/67177026ab510b09644fd4b8b301594aa5482cef/cinder/api/contrib/used_limits.py#L30 Change-Id: I3aae5d8c6c947cf5119f1cdc081dae8179421564