[TEST] fix security's request handler tests to check in the

knownHandlers set, not the knownActions

Original commit: elastic/x-pack-elasticsearch@63f3744853
This commit is contained in:
Ali Beyad 2017-01-18 12:19:42 -05:00
parent 5b5c77f573
commit 159bf63cd4
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ public class KnownActionsTests extends SecurityIntegTestCase {
public void testAllTransportHandlersAreKnown() {
TransportService transportService = internalCluster().getDataNodeInstance(TransportService.class);
for (String handler : transportService.requestHandlers.keySet()) {
if (!knownActions.contains(handler)) {
if (!knownHandlers.contains(handler)) {
assertThat("elasticsearch core transport handler [" + handler + "] is unknown to security", knownHandlers,
hasItem(handler));
}