File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 103
103
104
104
policy .DocumentedRuleDefault (
105
105
name = 'get_rule_type' ,
106
- check_str = base .ADMIN ,
106
+ # NOTE(ralonsoh): it can't be ADMIN_OR_PROJECT_READER constant from the
107
+ # base module because that is using "project_id" in the check string
108
+ # and the rule type resource don't belongs to any project thus such
109
+ # check string would fail enforcement.
110
+ check_str = 'role:reader' ,
107
111
scope_types = ['project' ],
108
112
description = 'Get available QoS rule types' ,
109
113
operations = [
Original file line number Diff line number Diff line change @@ -210,12 +210,6 @@ def setUp(self):
210
210
super (ProjectMemberQosRuleTypeTests , self ).setUp ()
211
211
self .context = self .project_member_ctx
212
212
213
- def test_get_rule_type (self ):
214
- self .assertRaises (
215
- base_policy .PolicyNotAuthorized ,
216
- policy .enforce ,
217
- self .context , 'get_rule_type' , self .target )
218
-
219
213
220
214
class ProjectReaderQosRuleTypeTests (ProjectMemberQosRuleTypeTests ):
221
215
You can’t perform that action at this time.
0 commit comments