commit | b45a05e8bed5c404016724c0ca39f050885ea9bd | [log] [tgz] |
---|---|---|
author | Felipe Monteiro <felipe.monteiro@att.com> | Sun Apr 30 03:51:08 2017 +0100 |
committer | Felipe Monteiro <felipe.monteiro@att.com> | Sun Apr 30 03:51:08 2017 +0100 |
tree | b3155249c06b7c9cfd8ac515c3dac0f775774fba | |
parent | edcdbecd6bfaf5476eb57a35d21c78a5c2876a5d [diff] |
Add RBAC test for force-deleting a backup This patch adds a new test for force-deleting a backup in test_volumes_backup_rbac, which tests the cinder policy action: "volume_extension:backup_admin_actions:force_delete". This patch also corrects the currently wrong policy action for the test test_snapshot_force_delete from "volume_extension:volume_admin_actions:force_delete" to "volume_extension:snapshot_admin_actions:force_delete". (The ``_force_delete`` function in the cinder admin actions API enforces the policy action corresponding to the resource name [0][1]). [0] https://github.com/openstack/cinder/blob/master/cinder/api/contrib/admin_actions.py#L133 [1] https://github.com/openstack/cinder/blob/master/cinder/api/contrib/admin_actions.py#L82 Change-Id: Icecf2152fe84da2847ae677a74a4d183eb4cd88b