From 9e5053a5c04573fc14ce9f04d055ab851744aa90 Mon Sep 17 00:00:00 2001 From: Tanguy Leroux Date: Tue, 1 Sep 2015 15:01:46 +0200 Subject: [PATCH] Marvel: Prints settings values in MarvelSettingsTests and remove smallest random time values Original commit: elastic/x-pack-elasticsearch@488306ba633cdbf14ce41d3c0089b7294d6d63a6 --- .../marvel/agent/settings/MarvelSettingsTests.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/marvel/src/test/java/org/elasticsearch/marvel/agent/settings/MarvelSettingsTests.java b/marvel/src/test/java/org/elasticsearch/marvel/agent/settings/MarvelSettingsTests.java index 2eb21ae7aaf..763615ccd88 100644 --- a/marvel/src/test/java/org/elasticsearch/marvel/agent/settings/MarvelSettingsTests.java +++ b/marvel/src/test/java/org/elasticsearch/marvel/agent/settings/MarvelSettingsTests.java @@ -71,6 +71,11 @@ public class MarvelSettingsTests extends ESIntegTestCase { @Test public void testMarvelSettingService() throws Exception { + logger.info("--> printing marvel settings values"); + for (MarvelSetting setting : MarvelSettings.settings()) { + logger.info("\t{}", setting); + } + logger.info("--> testing marvel settings service initialization"); for (final MarvelSettings marvelSettings : internalCluster().getInstances(MarvelSettings.class)) { assertThat(marvelSettings.startUpDelay().millis(), equalTo(startUp.millis())); @@ -152,7 +157,7 @@ public class MarvelSettingsTests extends ESIntegTestCase { } private TimeValue randomTimeValue() { - return TimeValue.parseTimeValue(randomFrom("1s", "10s", "30s", "1m", "30m", "1h"), null, getClass().getSimpleName()); + return TimeValue.parseTimeValue(randomFrom("30m", "1h", "3h", "5h", "7h", "10h", "1d"), null, getClass().getSimpleName()); } private String[] randomStringArray() {