Skip to content

Commit

Permalink
improve default FTP test settings
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Apr 9, 2021
1 parent 065d32a commit 0386a56
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/_setupTestServices.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ component {
"FTP_USERNAME": "lucee",
"FTP_PASSWORD": "", // DON'T COMMIT
"FTP_PORT": 21,
"FTP_BASE_PATH": "/test",
"FTP_BASE_PATH": "/",

"SFTP_SERVER"="localhost",
"SFTP_USERNAME": "lucee",
"SFTP_PASSWORD": "", // DON'T COMMIT
"SFTP_PORT": 22,
"SFTP_BASE_PATH": "/test",
"SFTP_PORT": 990,
"SFTP_BASE_PATH": "/",

"S3_ACCESS_KEY_ID": "test",
"S3_SECRET_KEY": "",
Expand Down Expand Up @@ -216,13 +216,14 @@ component {
public function verifyFTP ( ftp, service ) localmode=true {
ftp action = "open"
connection = "conn"
timeout = 5
secure= (arguments.service contains "sftp")
username = arguments.ftp.username
password = arguments.ftp.password
server = arguments.ftp.server
port= arguments.ftp.port;

ftp action = "close" connection = "conn";
//ftp action = "close" connection = "conn";

return "Connection Verified";
}
Expand Down

0 comments on commit 0386a56

Please sign in to comment.