mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Removed unused Terminal param (elastic/x-pack-elasticsearch#2854)
Relates elastic/elasticsearch#27216 Original commit: elastic/x-pack-elasticsearch@70bdda51ef
This commit is contained in:
parent
316da9a970
commit
f8cb1e603b
@ -51,7 +51,7 @@ public class ListXPackExtensionCommandTests extends ESTestCase {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Environment createEnv(Terminal terminal, Map<String, String> settings) throws UserException {
|
||||
protected Environment createEnv(Map<String, String> settings) throws UserException {
|
||||
return env;
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ public class ESNativeRealmMigrateToolTests extends CommandTestCase {
|
||||
return new MigrateUserOrRoles() {
|
||||
|
||||
@Override
|
||||
protected Environment createEnv(Terminal terminal, Map<String, String> settings) throws UserException {
|
||||
protected Environment createEnv(Map<String, String> settings) throws UserException {
|
||||
Settings.Builder builder = Settings.builder();
|
||||
settings.forEach((k,v) -> builder.put(k, v));
|
||||
return TestEnvironment.newEnvironment(builder.build());
|
||||
|
@ -102,7 +102,7 @@ public class SetupPasswordToolTests extends CommandTestCase {
|
||||
protected AutoSetup newAutoSetup() {
|
||||
return new AutoSetup() {
|
||||
@Override
|
||||
protected Environment createEnv(Terminal terminal, Map<String, String> settings) throws UserException {
|
||||
protected Environment createEnv(Map<String, String> settings) throws UserException {
|
||||
Settings.Builder builder = Settings.builder();
|
||||
settings.forEach((k,v) -> builder.put(k, v));
|
||||
return TestEnvironment.newEnvironment(builder.build());
|
||||
@ -114,7 +114,7 @@ public class SetupPasswordToolTests extends CommandTestCase {
|
||||
protected InteractiveSetup newInteractiveSetup() {
|
||||
return new InteractiveSetup() {
|
||||
@Override
|
||||
protected Environment createEnv(Terminal terminal, Map<String, String> settings) throws UserException {
|
||||
protected Environment createEnv(Map<String, String> settings) throws UserException {
|
||||
Settings.Builder builder = Settings.builder();
|
||||
settings.forEach((k,v) -> builder.put(k, v));
|
||||
return TestEnvironment.newEnvironment(builder.build());
|
||||
|
@ -110,7 +110,7 @@ public class UsersToolTests extends CommandTestCase {
|
||||
protected AddUserCommand newAddUserCommand() {
|
||||
return new AddUserCommand() {
|
||||
@Override
|
||||
protected Environment createEnv(Terminal terminal, Map<String, String> settings) throws UserException {
|
||||
protected Environment createEnv(Map<String, String> settings) throws UserException {
|
||||
return new Environment(UsersToolTests.this.settings, confDir.getParent());
|
||||
}
|
||||
};
|
||||
@ -120,7 +120,7 @@ public class UsersToolTests extends CommandTestCase {
|
||||
protected DeleteUserCommand newDeleteUserCommand() {
|
||||
return new DeleteUserCommand() {
|
||||
@Override
|
||||
protected Environment createEnv(Terminal terminal, Map<String, String> settings) throws UserException {
|
||||
protected Environment createEnv(Map<String, String> settings) throws UserException {
|
||||
return new Environment(UsersToolTests.this.settings, confDir.getParent());
|
||||
}
|
||||
};
|
||||
@ -130,7 +130,7 @@ public class UsersToolTests extends CommandTestCase {
|
||||
protected PasswordCommand newPasswordCommand() {
|
||||
return new PasswordCommand() {
|
||||
@Override
|
||||
protected Environment createEnv(Terminal terminal, Map<String, String> settings) throws UserException {
|
||||
protected Environment createEnv(Map<String, String> settings) throws UserException {
|
||||
return new Environment(UsersToolTests.this.settings, confDir.getParent());
|
||||
}
|
||||
};
|
||||
@ -140,7 +140,7 @@ public class UsersToolTests extends CommandTestCase {
|
||||
protected RolesCommand newRolesCommand() {
|
||||
return new RolesCommand() {
|
||||
@Override
|
||||
protected Environment createEnv(Terminal terminal, Map<String, String> settings) throws UserException {
|
||||
protected Environment createEnv(Map<String, String> settings) throws UserException {
|
||||
return new Environment(UsersToolTests.this.settings, confDir.getParent());
|
||||
}
|
||||
};
|
||||
@ -150,7 +150,7 @@ public class UsersToolTests extends CommandTestCase {
|
||||
protected ListCommand newListCommand() {
|
||||
return new ListCommand() {
|
||||
@Override
|
||||
protected Environment createEnv(Terminal terminal, Map<String, String> settings) throws UserException {
|
||||
protected Environment createEnv(Map<String, String> settings) throws UserException {
|
||||
return new Environment(UsersToolTests.this.settings, confDir.getParent());
|
||||
}
|
||||
};
|
||||
|
@ -49,7 +49,7 @@ public class SystemKeyToolTests extends CommandTestCase {
|
||||
return new SystemKeyTool() {
|
||||
|
||||
@Override
|
||||
protected Environment createEnv(Terminal terminal, Map<String, String> settings) throws UserException {
|
||||
protected Environment createEnv(Map<String, String> settings) throws UserException {
|
||||
Settings.Builder builder = Settings.builder();
|
||||
settings.forEach((k,v) -> builder.put(k, v));
|
||||
return TestEnvironment.newEnvironment(builder.build());
|
||||
|
Loading…
x
Reference in New Issue
Block a user