diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-04-28 11:35:10 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-05-02 14:59:58 +0200 |
commit | ef4d6e782a67bd422489d643e8807eaf7fb853c4 (patch) | |
tree | afb0e2c60837e52e808002fc643a2c87ed2c4c93 /script/dev-env-rclone.sh | |
parent | a981244f11af13f3dcebb9f399ab18d7e484014f (diff) | |
download | garage-ef4d6e782a67bd422489d643e8807eaf7fb853c4.tar.gz garage-ef4d6e782a67bd422489d643e8807eaf7fb853c4.zip |
Add minio & rclone to our functional teststest/more-clients
It is now possible to configure which clients
you do not want to test with the env variable SKIP_XXX=1,
XXX being the client name. eg. SKIP_S3CMD=1 ./script/test-smoke.sh
Diffstat (limited to 'script/dev-env-rclone.sh')
-rw-r--r-- | script/dev-env-rclone.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/script/dev-env-rclone.sh b/script/dev-env-rclone.sh new file mode 100644 index 00000000..87933476 --- /dev/null +++ b/script/dev-env-rclone.sh @@ -0,0 +1,21 @@ +ACCESS_KEY=`cat /tmp/garage.s3 |cut -d' ' -f1` +SECRET_KEY=`cat /tmp/garage.s3 |cut -d' ' -f2` + +cat > /tmp/garage.rclone.conf <<EOF +[garage] +type = s3 +provider = Other +env_auth = false +access_key_id = $ACCESS_KEY +secret_access_key = $SECRET_KEY +endpoint = http://127.0.0.1:3911 +bucket_acl = private +force_path_style = true +region = garage +no_check_bucket = true +EOF +# It seems that region is mandatory as rclone does not support redirection + + +function rclone { command rclone --config /tmp/garage.rclone.conf $@ ; } +rclone --version |