aboutsummaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-11-22 12:10:28 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-11-22 12:10:28 +0100
commit8811bb08e6d5eb024bacdfbb20d039c6b696e1a6 (patch)
tree8cc7fd28cd8d373e521ecd308cb0ec337c83959c /script
parent85b2e4ca2935000310dd64dbcfff39f28f69a295 (diff)
downloadgarage-feature/hide-buckets-without-perm.tar.gz
garage-feature/hide-buckets-without-perm.zip
In ListBuckets, hide entry if no permsfeature/hide-buckets-without-perm
Diffstat (limited to 'script')
-rwxr-xr-xscript/test-smoke.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/script/test-smoke.sh b/script/test-smoke.sh
index 87d99ca8..3146e637 100755
--- a/script/test-smoke.sh
+++ b/script/test-smoke.sh
@@ -125,6 +125,21 @@ if [ -z "$SKIP_AWS" ]; then
rm /tmp/garage-index.html
fi
+if [ -z "$SKIP_AWS" ]; then
+ echo "🪣 Test bucket logic "
+ AWS_ACCESS_KEY_ID=`cat /tmp/garage.s3 |cut -d' ' -f1`
+ [ $(aws s3 ls | wc -l) == 1 ]
+ garage -c /tmp/config.1.toml bucket create seau
+ garage -c /tmp/config.1.toml bucket allow --read seau --key $AWS_ACCESS_KEY_ID
+ [ $(aws s3 ls | wc -l) == 2 ]
+ garage -c /tmp/config.1.toml bucket deny --read seau --key $AWS_ACCESS_KEY_ID
+ [ $(aws s3 ls | wc -l) == 1 ]
+ garage -c /tmp/config.1.toml bucket allow --read seau --key $AWS_ACCESS_KEY_ID
+ [ $(aws s3 ls | wc -l) == 2 ]
+ garage -c /tmp/config.1.toml bucket delete --yes seau
+ [ $(aws s3 ls | wc -l) == 1 ]
+fi
+
echo "🏁 Teardown"
AWS_ACCESS_KEY_ID=`cat /tmp/garage.s3 |cut -d' ' -f1`
AWS_SECRET_ACCESS_KEY=`cat /tmp/garage.s3 |cut -d' ' -f2`