[TEST] Fix IndexPrivilegeTests for the _optimize removal

Original commit: elastic/x-pack-elasticsearch@cc1a8b94d4
This commit is contained in:
Lee Hinman 2015-10-29 16:39:03 -06:00
parent c5ff81e0ac
commit 52cfa2b6ed
1 changed files with 2 additions and 2 deletions

View File

@ -340,7 +340,7 @@ public class IndexPrivilegeTests extends AbstractPrivilegeTestCase {
Map<String, String> analyzeParams = singletonMap("text", "test"); Map<String, String> analyzeParams = singletonMap("text", "test");
assertAccessIsAllowed(user, "GET", "/" + index + "/_analyze", null, analyzeParams); assertAccessIsAllowed(user, "GET", "/" + index + "/_analyze", null, analyzeParams);
assertAccessIsAllowed(user, "POST", "/" + index + "/_flush"); assertAccessIsAllowed(user, "POST", "/" + index + "/_flush");
assertAccessIsAllowed(user, "POST", "/" + index + "/_optimize"); assertAccessIsAllowed(user, "POST", "/" + index + "/_forcemerge");
assertAccessIsAllowed(user, "POST", "/" + index + "/_upgrade", null); assertAccessIsAllowed(user, "POST", "/" + index + "/_upgrade", null);
assertAccessIsAllowed(user, "POST", "/" + index + "/_close"); assertAccessIsAllowed(user, "POST", "/" + index + "/_close");
assertAccessIsAllowed(user, "POST", "/" + index + "/_open"); assertAccessIsAllowed(user, "POST", "/" + index + "/_open");
@ -361,7 +361,7 @@ public class IndexPrivilegeTests extends AbstractPrivilegeTestCase {
Map<String, String> analyzeParams = singletonMap("text", "test"); Map<String, String> analyzeParams = singletonMap("text", "test");
assertAccessIsDenied(user, "GET", "/" + index + "/_analyze", null, analyzeParams); assertAccessIsDenied(user, "GET", "/" + index + "/_analyze", null, analyzeParams);
assertAccessIsDenied(user, "POST", "/" + index + "/_flush"); assertAccessIsDenied(user, "POST", "/" + index + "/_flush");
assertAccessIsDenied(user, "POST", "/" + index + "/_optimize"); assertAccessIsDenied(user, "POST", "/" + index + "/_forcemerge");
assertAccessIsDenied(user, "POST", "/" + index + "/_upgrade", null); assertAccessIsDenied(user, "POST", "/" + index + "/_upgrade", null);
assertAccessIsDenied(user, "POST", "/" + index + "/_close"); assertAccessIsDenied(user, "POST", "/" + index + "/_close");
assertAccessIsDenied(user, "POST", "/" + index + "/_open"); assertAccessIsDenied(user, "POST", "/" + index + "/_open");