IndexAction is now handled at the shard level, so don't test it

Original commit: elastic/x-pack-elasticsearch@0398acb10c
This commit is contained in:
Lee Hinman 2017-01-09 13:41:51 -07:00
parent 0b64c9e550
commit e311ce0794
1 changed files with 2 additions and 5 deletions

View File

@ -773,7 +773,7 @@ public class AuthorizationServiceTests extends ESTestCase {
public void testCompositeActionsIndicesAreCheckedAtTheShardLevel() {
String action;
switch(randomIntBetween(0, 5)) {
switch(randomIntBetween(0, 4)) {
case 0:
action = MultiGetAction.NAME + "[shard]";
break;
@ -790,13 +790,10 @@ public class AuthorizationServiceTests extends ESTestCase {
case 4:
action = "indices:data/read/mpercolate[s]";
break;
case 5:
//reindex delegates to index, other than search covered above
action = IndexAction.NAME;
break;
default:
throw new UnsupportedOperationException();
}
logger.info("--> action: {}", action);
TransportRequest request = new MockIndicesRequest(IndicesOptions.strictExpandOpen(), "index");
User userAllowed = new User("userAllowed", "roleAllowed");