mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 21:18:31 +00:00
increased logging
Original commit: elastic/x-pack-elasticsearch@704c8d6132
This commit is contained in:
parent
b0a16e36fd
commit
4530232060
@ -93,6 +93,7 @@ public class HttpClient extends AbstractComponent {
|
||||
}
|
||||
}
|
||||
if (request.auth() != null) {
|
||||
logger.debug("applying auth headers");
|
||||
request.auth().update(urlConnection);
|
||||
}
|
||||
urlConnection.setUseCaches(false);
|
||||
|
@ -11,6 +11,7 @@ import org.elasticsearch.common.settings.ImmutableSettings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
import org.elasticsearch.node.internal.InternalNode;
|
||||
import org.elasticsearch.test.junit.annotations.TestLogging;
|
||||
import org.elasticsearch.watcher.client.WatcherClient;
|
||||
import org.elasticsearch.watcher.history.HistoryStore;
|
||||
import org.elasticsearch.watcher.support.http.HttpRequestTemplate;
|
||||
@ -48,6 +49,7 @@ public class HttpInputIntegrationTest extends AbstractWatcherIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestLogging("watcher.support.http:TRACE")
|
||||
public void testHttpInput() throws Exception {
|
||||
createIndex("index");
|
||||
client().prepareIndex("index", "type", "id").setSource("{}").setRefresh(true).get();
|
||||
@ -72,6 +74,7 @@ public class HttpInputIntegrationTest extends AbstractWatcherIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestLogging("watcher.support.http:TRACE")
|
||||
public void testHttpInput_clusterStats() throws Exception {
|
||||
InetSocketAddress address = internalTestCluster().httpAddresses()[0];
|
||||
watcherClient().preparePutWatch("_name")
|
||||
@ -92,6 +95,7 @@ public class HttpInputIntegrationTest extends AbstractWatcherIntegrationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestLogging("watcher.support.http:TRACE")
|
||||
public void testInputFiltering() throws Exception {
|
||||
WatcherClient watcherClient = watcherClient();
|
||||
createIndex("idx");
|
||||
|
Loading…
x
Reference in New Issue
Block a user