NIFI-3931 - Added EL to properties in SFTP transfer

The properties are already evaluated against EL. Also added an
integration test that is failing without the change.

This closes #1968.

Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
This commit is contained in:
Pierre Villard 2017-07-02 15:24:17 +02:00 committed by Koji Kawamura
parent 6df112e4b1
commit 9f23ec360a
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,7 @@ public class SFTPTransfer implements FileTransfer {
.description("Password for the private key") .description("Password for the private key")
.required(false) .required(false)
.addValidator(StandardValidators.NON_EMPTY_VALIDATOR) .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
.expressionLanguageSupported(true)
.sensitive(true) .sensitive(true)
.build(); .build();
public static final PropertyDescriptor HOST_KEY_FILE = new PropertyDescriptor.Builder() public static final PropertyDescriptor HOST_KEY_FILE = new PropertyDescriptor.Builder()
@ -82,6 +83,7 @@ public class SFTPTransfer implements FileTransfer {
.name("Port") .name("Port")
.description("The port that the remote system is listening on for file transfers") .description("The port that the remote system is listening on for file transfers")
.addValidator(StandardValidators.PORT_VALIDATOR) .addValidator(StandardValidators.PORT_VALIDATOR)
.expressionLanguageSupported(true)
.required(true) .required(true)
.defaultValue("22") .defaultValue("22")
.build(); .build();