aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTaehyung Lim <ehooizlo@gmail.com>2025-10-30 04:27:25 +0900
committerGitHub <noreply@github.com>2025-10-29 12:27:25 -0700
commitd4790cb8e60d61c7b5c7e19304356b30f7b1bdc4 (patch)
tree4440e93d7c6a87f2ef7cd7bfc7ced45c5d6b6d4e /.github
parented023f4a7da6511c030e898c0a5c3924d04d008c (diff)
downloadseaweedfs-d4790cb8e60d61c7b5c7e19304356b30f7b1bdc4.tar.xz
seaweedfs-d4790cb8e60d61c7b5c7e19304356b30f7b1bdc4.zip
s3: fix if-match error (#7277)
* s3: fix if-match error * add more checks * minor * minor --------- Co-authored-by: chrislu <chris.lu@gmail.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test-s3-over-https-using-awscli.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/test-s3-over-https-using-awscli.yml b/.github/workflows/test-s3-over-https-using-awscli.yml
index f09d1c1aa..ff2e433f0 100644
--- a/.github/workflows/test-s3-over-https-using-awscli.yml
+++ b/.github/workflows/test-s3-over-https-using-awscli.yml
@@ -77,3 +77,12 @@ jobs:
aws --no-verify-ssl s3 cp --no-progress s3://bucket/test-multipart downloaded
diff -q generated downloaded
rm -f generated downloaded
+
+ - name: Test GetObject with If-Match
+ run: |
+ set -e
+ dd if=/dev/urandom of=generated bs=1M count=32
+ ETAG=$(aws --no-verify-ssl s3api put-object --bucket bucket --key test-get-obj --body generated | jq -r .ETag)
+ aws --no-verify-ssl s3api get-object --bucket bucket --key test-get-obj --if-match ${ETAG:1:32} downloaded
+ diff -q generated downloaded
+ rm -f generated downloaded