mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
The add string keystore command accepts input on stdin. In this case, the terminal is responsible for separating input by newlines that are system dependent. The mock terminal normally adds the system dependent newline. However, we also have tests that ensure both unix and windows style newlines are tested explicitly. This commit fixes the windows style carriage returns to explicitly contain a newline. closes #127089
This commit is contained in:
parent
d3f1b52394
commit
e79d033f1f
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ public class AddStringKeyStoreCommandTests extends KeyStoreCommandTestCase {
|
|||
String password = "keystorepassword";
|
||||
KeyStoreWrapper.create().save(env.configDir(), password.toCharArray());
|
||||
terminal.addSecretInput(password);
|
||||
terminal.addSecretInput("Typedthisandhitenter\r");
|
||||
terminal.addSecretInput("Typedthisandhitenter\r\n");
|
||||
execute("-x", "foo");
|
||||
assertSecureString("foo", "Typedthisandhitenter", password);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue