From 1787394fe008985ddb88af89da973a9a42bf63ea 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 fe8d664ebc7e0..835742c0d93e6 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 @@ -165,6 +165,7 @@ public void testThatSnapshotAndRestore() throws Exception { 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");