Skip to content

Commit cf69fc0

Browse files
committed
184: Removed unused privileges
Signed-off-by: Stevan Buzejic <buzejic.stevan@gmail.com>
1 parent df7af11 commit cf69fc0

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

src/test/kotlin/org/opensearch/indexmanagement/SecurityBehaviorIT.kt

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)