use of org.elasticsearch.node.internal.InternalNode in project elasticsearch-jetty by sonian.
the class LoggingFilterHttpServerAdapterTests method testLoggingSettings.
@Test
public void testLoggingSettings() throws Exception {
startNode("server1");
FilterHttpServerTransport filterHttpServerTransport = (FilterHttpServerTransport) ((InternalNode) node("server1")).injector().getInstance(HttpServerTransport.class);
LoggingFilterHttpServerAdapter logging = (LoggingFilterHttpServerAdapter) filterHttpServerTransport.filter("logging");
assertThat(logging.requestLoggingLevelSettings().getLoggingLevel(GET, "/_bulk").logBody(), equalTo(false));
assertThat(logging.requestLoggingLevelSettings().getLoggingLevel(GET, "/idx/_bulk").logBody(), equalTo(false));
assertThat(logging.requestLoggingLevelSettings().getLoggingLevel(GET, "/_cluster/health").logLevel(), equalTo(TRACE));
}
Aggregations