Skip to content

Commit

Permalink
test: signature fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lrm25 committed Dec 16, 2024
1 parent 0903815 commit 1825acb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/commands/delete_object_tagging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ delete_object_tagging_rest() {
log 2 "error sending delete object tagging REST command: $result"
return 1
fi
if [ "$result" != "200" ]; then
if [ "$result" != "204" ]; then
log 2 "delete-object-tagging returned code $result (response: $(cat "$TEST_FILE_FOLDER/response.txt"))"
return 1
fi
Expand Down
4 changes: 2 additions & 2 deletions tests/rest_scripts/delete_object_tagging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ host:$host
x-amz-content-sha256:UNSIGNED-PAYLOAD
x-amz-date:$current_date_time
content-md5;host;x-amz-content-sha256;x-amz-date
host;x-amz-content-sha256;x-amz-date
UNSIGNED-PAYLOAD"

create_canonical_hash_sts_and_signature

curl_command+=(curl -ks -w "\"%{http_code}\"" -X DELETE "$AWS_ENDPOINT_URL/$bucket_name/$key?tagging"
-H "\"Authorization: AWS4-HMAC-SHA256 Credential=$aws_access_key_id/$year_month_day/$aws_region/s3/aws4_request,SignedHeaders=host;x-amz-content-sha256;x-amz-date,Signature=$signature\""
-H "\"x-amz-content-sha256: $payload_hash\""
-H "\"x-amz-content-sha256: UNSIGNED-PAYLOAD\""
-H "\"x-amz-date: $current_date_time\""
-o "$OUTPUT_FILE")

Expand Down

0 comments on commit 1825acb

Please sign in to comment.