test: Get/PutObjectTagging tests with versioning

This commit is contained in:
Luke McCrone
2025-12-17 15:00:54 -03:00
parent 2ab1cef407
commit 4a31d0d5d2
15 changed files with 405 additions and 10 deletions

View File

@@ -345,7 +345,11 @@ func (s *S3Command) buildCurlShellCommand() (string, error) {
if s.MissingHostParam {
return "", fmt.Errorf("missingHostParam option only available for OpenSSL commands")
}
curlCommand := []string{"curl", "-iks"}
curlOpts := "-iks"
if s.Method == "HEAD" {
curlOpts += "I"
}
curlCommand := []string{"curl", curlOpts}
if s.Method != "GET" {
curlCommand = append(curlCommand, fmt.Sprintf("-X %s ", s.Method))
}