21257615e7
Made changes to use default policies in our unit and functional tests rather than referring it from glance/tests/etc/policy.yaml file. Existing function 'set_policy_rules' can be used to test custom policy rules in functional testing. Improvements needed in followup patch: 1. Property protection related unit tests still reads the special policy from the policy.yaml file, need to make provision to override it instead. 2. Need to remove 'set_policy' function which actually responsible for above behavior. Related to blueprint policy-refactor Change-Id: I0de9b9f9a7de499574101e3366ced730b0cb5fd1
5 lines
214 B
YAML
5 lines
214 B
YAML
# FIXME (abhishekk): This special rule is required in unit tests
|
|
# to test property protection using policies. Need to make provision
|
|
# to set such rules on the fly.
|
|
"glance_creator": "role:admin or role:spl_role"
|