Marvel: Prints settings values in MarvelSettingsTests and remove smallest random time values
Original commit: elastic/x-pack-elasticsearch@488306ba63
This commit is contained in:
parent
794b2e0089
commit
9e5053a5c0
|
@ -71,6 +71,11 @@ public class MarvelSettingsTests extends ESIntegTestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMarvelSettingService() throws Exception {
|
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");
|
logger.info("--> testing marvel settings service initialization");
|
||||||
for (final MarvelSettings marvelSettings : internalCluster().getInstances(MarvelSettings.class)) {
|
for (final MarvelSettings marvelSettings : internalCluster().getInstances(MarvelSettings.class)) {
|
||||||
assertThat(marvelSettings.startUpDelay().millis(), equalTo(startUp.millis()));
|
assertThat(marvelSettings.startUpDelay().millis(), equalTo(startUp.millis()));
|
||||||
|
@ -152,7 +157,7 @@ public class MarvelSettingsTests extends ESIntegTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
private TimeValue randomTimeValue() {
|
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() {
|
private String[] randomStringArray() {
|
||||||
|
|
Loading…
Reference in New Issue