[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:
parent
5b5c77f573
commit
159bf63cd4
|
@ -75,7 +75,7 @@ public class KnownActionsTests extends SecurityIntegTestCase {
|
||||||
public void testAllTransportHandlersAreKnown() {
|
public void testAllTransportHandlersAreKnown() {
|
||||||
TransportService transportService = internalCluster().getDataNodeInstance(TransportService.class);
|
TransportService transportService = internalCluster().getDataNodeInstance(TransportService.class);
|
||||||
for (String handler : transportService.requestHandlers.keySet()) {
|
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,
|
assertThat("elasticsearch core transport handler [" + handler + "] is unknown to security", knownHandlers,
|
||||||
hasItem(handler));
|
hasItem(handler));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue