From 2a3afcaf659bca7fa43501f6adb016626e6f29ed Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Thu, 3 Mar 2022 13:34:20 +0100 Subject: Test WinSCP --- script/dev-env-winscp.sh | 4 ++++ script/test-smoke.sh | 25 +++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 script/dev-env-winscp.sh (limited to 'script') diff --git a/script/dev-env-winscp.sh b/script/dev-env-winscp.sh new file mode 100644 index 00000000..678da510 --- /dev/null +++ b/script/dev-env-winscp.sh @@ -0,0 +1,4 @@ +export AWS_ACCESS_KEY_ID=`cat /tmp/garage.s3 |cut -d' ' -f1` +export AWS_SECRET_ACCESS_KEY=`cat /tmp/garage.s3 |cut -d' ' -f2` +export AWS_DEFAULT_REGION='garage' +export WINSCP_URL="s3://${AWS_ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}@127.0.0.1:4443 -certificate=* -rawsettings S3DefaultRegion=garage S3UrlStyle=1" diff --git a/script/test-smoke.sh b/script/test-smoke.sh index 4483f65b..c992803e 100755 --- a/script/test-smoke.sh +++ b/script/test-smoke.sh @@ -116,6 +116,31 @@ if [ -z "$SKIP_DUCK" ]; then done fi +if [ -z "$SKIP_WINSCP" ]; then + echo "🛠️ Testing with winscp" + source ${SCRIPT_FOLDER}/dev-env-winscp.sh + winscp <