test: new large file download/compare code

This commit is contained in:
Luke McCrone
2025-06-19 15:01:58 -03:00
parent 082498a65c
commit 22e29b84a3
18 changed files with 183 additions and 46 deletions
+7 -2
View File
@@ -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
+1
View File
@@ -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"