mirror of
https://github.com/versity/versitygw.git
synced 2026-09-16 21:14:16 +00:00
test: new large file download/compare code
This commit is contained in:
@@ -20,15 +20,20 @@ source ./tests/rest_scripts/rest.sh
|
||||
|
||||
# shellcheck disable=SC2153
|
||||
bucket_name="$BUCKET_NAME"
|
||||
# shellcheck disable=SC2154
|
||||
# shellcheck disable=SC2153
|
||||
key="$OBJECT_KEY"
|
||||
# shellcheck disable=SC2154
|
||||
# shellcheck disable=SC2153
|
||||
checksum_mode="${CHECKSUM_MODE:=false}"
|
||||
# shellcheck disable=SC2153
|
||||
range="$RANGE"
|
||||
|
||||
current_date_time=$(date -u +"%Y%m%dT%H%M%SZ")
|
||||
|
||||
#x-amz-object-attributes:ETag
|
||||
canonical_request_data+=("GET" "/$bucket_name/$key" "" "host:$host")
|
||||
if [ "$range" != "" ]; then
|
||||
canonical_request_data+=("range:$range")
|
||||
fi
|
||||
if [ "$checksum_mode" == "true" ]; then
|
||||
canonical_request_data+=("x-amz-checksum-mode:ENABLED")
|
||||
fi
|
||||
|
||||
@@ -54,6 +54,7 @@ fi
|
||||
|
||||
# shellcheck disable=SC2119
|
||||
create_canonical_hash_sts_and_signature
|
||||
log_rest 5 "cr data: $canonical_request"
|
||||
|
||||
curl_command+=(curl -ks -w "\"%{http_code}\"")
|
||||
url="'$AWS_ENDPOINT_URL/$bucket_name"
|
||||
|
||||
Reference in New Issue
Block a user