Merge "Fix a missing policy in test policy data"

This commit is contained in:
Zuul 2019-02-15 01:56:16 +00:00 committed by Gerrit Code Review
commit 505ff09233
2 changed files with 4 additions and 2 deletions

View File

@ -526,9 +526,10 @@ class FlavorManagerPolicyEnforcementV21(test.TestCase):
exc.format_message())
def test_flavor_update_non_admin_fails(self):
"""Tests that trying to update a flavor as a non-admin fails due
to the default policy.
"""Tests that trying to update a flavor as a non-admin fails.
"""
rule_name = "os_compute_api:os-flavor-manage:update"
self.policy.set_rules({rule_name: "is_admin:True"})
self.req.api_version_request = api_version_request.APIVersionRequest(
'2.55')
exc = self.assertRaises(

View File

@ -45,6 +45,7 @@ policy_data = """
"os_compute_api:os-flavor-extra-specs:index": "",
"os_compute_api:os-flavor-extra-specs:show": "",
"os_compute_api:os-flavor-manage:create": "",
"os_compute_api:os-flavor-manage:update": "",
"os_compute_api:os-flavor-manage:delete": "",
"os_compute_api:os-floating-ip-pools": "",
"os_compute_api:os-floating-ips": "",