File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed
src/test/kotlin/org/opensearch/indexmanagement Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -38,17 +38,7 @@ class SecurityBehaviorIT : SecurityRestTestCase() {
3838 WRITE_POLICY ,
3939 GET_POLICY ,
4040 GET_POLICIES ,
41- EXPLAIN_INDEX ,
42- ROLLUP_ALL ,
43- INDEX_ROLLUP ,
44- GET_ROLLUP ,
45- EXPLAIN_ROLLUP ,
46- UPDATE_ROLLUP ,
47- TRANSFORM_ACTION ,
48- GET_TRANSFORM ,
49- EXPLAIN_TRANSFORM ,
50- START_TRANSFORM ,
51- HEALTH
41+ EXPLAIN_INDEX
5242 )
5343
5444 val indexPermissions = listOf (
@@ -176,11 +166,11 @@ class SecurityBehaviorIT : SecurityRestTestCase() {
176166 checkPolicies(janeClient, jane, 1 )
177167
178168 // Confirm that users belonging to different roles can't see each other policies
179- checkPolicyGet(AVAILABILITY_POLICY , johnClient!! , RestStatus .INTERNAL_SERVER_ERROR )
169+ checkPolicyGet(AVAILABILITY_POLICY , johnClient!! , RestStatus .FORBIDDEN )
180170
181- checkPolicyGet(AVAILABILITY_POLICY , jillClient, RestStatus .INTERNAL_SERVER_ERROR )
171+ checkPolicyGet(AVAILABILITY_POLICY , jillClient, RestStatus .FORBIDDEN )
182172
183- checkPolicyGet(AIRLINE_POLICY , janeClient, RestStatus .INTERNAL_SERVER_ERROR )
173+ checkPolicyGet(AIRLINE_POLICY , janeClient, RestStatus .FORBIDDEN )
184174 } finally {
185175 jillClient?.close()
186176 janeClient?.close()
You can’t perform that action at this time.
0 commit comments