Fix failure in test code ClusterPrivilegeTests

Closes #38030
This commit is contained in:
Albert Zaharovits 2019-01-30 16:11:44 +02:00
parent 8280a20664
commit 53e80e9814
1 changed files with 1 additions and 0 deletions

View File

@ -168,6 +168,7 @@ public class ClusterPrivilegeTests extends AbstractPrivilegeTestCase {
waitForSnapshotToFinish("my-repo", "my-snapshot"); waitForSnapshotToFinish("my-repo", "my-snapshot");
// user_d can create snapshots, but not concurrently // user_d can create snapshots, but not concurrently
assertAccessIsAllowed("user_d", "PUT", "/_snapshot/my-repo/my-snapshot-d", "{ \"indices\": \"someindex\" }"); assertAccessIsAllowed("user_d", "PUT", "/_snapshot/my-repo/my-snapshot-d", "{ \"indices\": \"someindex\" }");
waitForSnapshotToFinish("my-repo", "my-snapshot-d");
assertAccessIsDenied("user_a", "DELETE", "/someindex"); assertAccessIsDenied("user_a", "DELETE", "/someindex");
assertAccessIsDenied("user_b", "DELETE", "/someindex"); assertAccessIsDenied("user_b", "DELETE", "/someindex");