Fix compilation due to upstream change
Original commit: elastic/x-pack-elasticsearch@57d834841d
This commit is contained in:
parent
c46e09902d
commit
5ad170a7ed
|
@ -46,7 +46,9 @@ public class ESNativeRealmMigrateToolTests extends CommandTestCase {
|
|||
|
||||
@Override
|
||||
protected Environment createEnv(Terminal terminal, Map<String, String> settings) throws UserException {
|
||||
return new Environment(Settings.builder().put(settings).build());
|
||||
Settings.Builder builder = Settings.builder();
|
||||
settings.forEach((k,v) -> builder.put(k, v));
|
||||
return new Environment(builder.build());
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
@ -100,7 +100,9 @@ public class SetupPasswordToolTests extends CommandTestCase {
|
|||
return new AutoSetup() {
|
||||
@Override
|
||||
protected Environment createEnv(Terminal terminal, Map<String, String> settings) throws UserException {
|
||||
return new Environment(Settings.builder().put(settings).build());
|
||||
Settings.Builder builder = Settings.builder();
|
||||
settings.forEach((k,v) -> builder.put(k, v));
|
||||
return new Environment(builder.build());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -110,7 +112,9 @@ public class SetupPasswordToolTests extends CommandTestCase {
|
|||
return new InteractiveSetup() {
|
||||
@Override
|
||||
protected Environment createEnv(Terminal terminal, Map<String, String> settings) throws UserException {
|
||||
return new Environment(Settings.builder().put(settings).build());
|
||||
Settings.Builder builder = Settings.builder();
|
||||
settings.forEach((k,v) -> builder.put(k, v));
|
||||
return new Environment(builder.build());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -50,7 +50,9 @@ public class SystemKeyToolTests extends CommandTestCase {
|
|||
|
||||
@Override
|
||||
protected Environment createEnv(Terminal terminal, Map<String, String> settings) throws UserException {
|
||||
return new Environment(Settings.builder().put(settings).build());
|
||||
Settings.Builder builder = Settings.builder();
|
||||
settings.forEach((k,v) -> builder.put(k, v));
|
||||
return new Environment(builder.build());
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue