diff options
author | Alex Auvolat <alex@adnab.me> | 2023-06-09 11:36:36 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-06-09 16:23:37 +0200 |
commit | e645bbd3ce247ab0c2d9d07ed528bc0d9d32031b (patch) | |
tree | 9ea68a0691c5ade147a3c152cd9f041c6e30cb94 | |
parent | 58563ed700675627199869fe4970ba5f9bb1ad46 (diff) | |
download | garage-e645bbd3ce247ab0c2d9d07ed528bc0d9d32031b.tar.gz garage-e645bbd3ce247ab0c2d9d07ed528bc0d9d32031b.zip |
smoke test: add multipart upload test with part re-upload
-rwxr-xr-x | script/test-smoke.sh | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/script/test-smoke.sh b/script/test-smoke.sh index 4467bb18..6965c0f3 100755 --- a/script/test-smoke.sh +++ b/script/test-smoke.sh @@ -60,18 +60,18 @@ if [ -z "$SKIP_AWS" ]; then echo "🛠️ Testing multipart uploads with awscli (aws s3api)" UPLOAD=$(aws s3api create-multipart-upload --bucket eprouvette --key 'upload' | jq -r ".UploadId") echo "Upload ID: $UPLOAD" - ETAG3=$(aws s3api upload-part --bucket eprouvette --key 'upload' \ - --part-number 3 --body "/tmp/garage.part1.rnd" --upload-id "$UPLOAD" \ - | jq -r ".ETag") - ETAG2=$(aws s3api upload-part --bucket eprouvette --key 'upload' \ - --part-number 2 --body "/tmp/garage.part2.rnd" --upload-id "$UPLOAD" \ - | jq -r ".ETag") - ETAG3=$(aws s3api upload-part --bucket eprouvette --key 'upload' \ - --part-number 3 --body "/tmp/garage.part3.rnd" --upload-id "$UPLOAD" \ - | jq -r ".ETag") - ETAG6=$(aws s3api upload-part --bucket eprouvette --key 'upload' \ - --part-number 6 --body "/tmp/garage.part4.rnd" --upload-id "$UPLOAD" \ - | jq -r ".ETag") + ETAG3=$(aws s3api upload-part --bucket eprouvette --key 'upload' \ + --part-number 3 --body "/tmp/garage.part1.rnd" --upload-id "$UPLOAD" \ + | jq -r ".ETag") + ETAG2=$(aws s3api upload-part --bucket eprouvette --key 'upload' \ + --part-number 2 --body "/tmp/garage.part2.rnd" --upload-id "$UPLOAD" \ + | jq -r ".ETag") + ETAG3=$(aws s3api upload-part --bucket eprouvette --key 'upload' \ + --part-number 3 --body "/tmp/garage.part3.rnd" --upload-id "$UPLOAD" \ + | jq -r ".ETag") + ETAG6=$(aws s3api upload-part --bucket eprouvette --key 'upload' \ + --part-number 6 --body "/tmp/garage.part4.rnd" --upload-id "$UPLOAD" \ + | jq -r ".ETag") MPU="{\"Parts\":[{\"PartNumber\":2,\"ETag\":$ETAG2}, {\"PartNumber\":3,\"ETag\":$ETAG3}, {\"PartNumber\":6,\"ETag\":$ETAG6}]}" echo $MPU > /tmp/garage.mpu.json aws s3api complete-multipart-upload --multipart-upload file:///tmp/garage.mpu.json \ |