From 53e80e98148a714d90da8f49bb283d290d737109 Mon Sep 17 00:00:00 2001 From: Albert Zaharovits Date: Wed, 30 Jan 2019 16:11:44 +0200 Subject: [PATCH] Fix failure in test code ClusterPrivilegeTests Closes #38030 --- .../org/elasticsearch/integration/ClusterPrivilegeTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugin/security/src/test/java/org/elasticsearch/integration/ClusterPrivilegeTests.java b/x-pack/plugin/security/src/test/java/org/elasticsearch/integration/ClusterPrivilegeTests.java index 3b30982784b..820dba9b96b 100644 --- a/x-pack/plugin/security/src/test/java/org/elasticsearch/integration/ClusterPrivilegeTests.java +++ b/x-pack/plugin/security/src/test/java/org/elasticsearch/integration/ClusterPrivilegeTests.java @@ -168,6 +168,7 @@ public class ClusterPrivilegeTests extends AbstractPrivilegeTestCase { waitForSnapshotToFinish("my-repo", "my-snapshot"); // user_d can create snapshots, but not concurrently 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_b", "DELETE", "/someindex");