diff options
| author | Sebastian Kurfuerst <sebastian.kurfuerst@sandstorm.de> | 2021-12-31 22:07:49 +0100 |
|---|---|---|
| committer | Sebastian Kurfuerst <sebastian.kurfuerst@sandstorm.de> | 2021-12-31 22:07:49 +0100 |
| commit | 99abddf3769a5e4a25c72e67df9106e41b7aa8f3 (patch) | |
| tree | 6b38878ee8b24754265e88293c9bdabf6aa50627 /test/s3/compatibility/run.sh | |
| parent | c35660175d0ffc88a1e0097ec90bd7e000339d14 (diff) | |
| download | seaweedfs-99abddf3769a5e4a25c72e67df9106e41b7aa8f3.tar.xz seaweedfs-99abddf3769a5e4a25c72e67df9106e41b7aa8f3.zip | |
FEATURE: add test setup for running the CephFS S3 compatibility suite
Diffstat (limited to 'test/s3/compatibility/run.sh')
| -rwxr-xr-x | test/s3/compatibility/run.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/s3/compatibility/run.sh b/test/s3/compatibility/run.sh new file mode 100755 index 000000000..96d630dd7 --- /dev/null +++ b/test/s3/compatibility/run.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +set -ex + +killall -9 weed || echo "already stopped" +rm -Rf tmp +mkdir tmp +docker stop s3test-instance || echo "already stopped" + +ulimit -n 10000 +../../../weed/weed server -filer -s3 -volume.max 0 -master.volumeSizeLimitMB 5 -dir "$(pwd)/tmp" 1>&2>weed.log & + +until $(curl --output /dev/null --silent --head --fail http://127.0.0.1:9333); do + printf '.' + sleep 5 +done +sleep 3 + +rm -Rf logs-full.txt logs-summary.txt +# docker run --name s3test-instance --rm -e S3TEST_CONF=s3tests.conf -v `pwd`/s3tests.conf:/s3-tests/s3tests.conf -it s3tests ./virtualenv/bin/nosetests s3tests_boto3/functional/test_s3.py:test_get_obj_tagging -v -a 'resource=object,!bucket-policy,!versioning,!encryption' +docker run --name s3test-instance --rm -e S3TEST_CONF=s3tests.conf -v `pwd`/s3tests.conf:/s3-tests/s3tests.conf -it s3tests ./virtualenv/bin/nosetests s3tests_boto3/functional/test_s3.py -v -a 'resource=object,!bucket-policy,!versioning,!encryption' | sed -n -e '/botocore.hooks/!p;//q' | tee logs-summary.txt + +docker stop s3test-instance || echo "already stopped" +killall -9 weed |
