mirror of
https://github.com/versity/versitygw.git
synced 2026-01-07 04:06:23 +00:00
test: temp fixes for legal-hold/retention tests
This commit is contained in:
@@ -127,13 +127,10 @@ test_get_put_object_legal_hold_s3api_root() {
|
||||
|
||||
echo "fdkljafajkfs" > "$TEST_FILE_FOLDER/$bucket_file"
|
||||
run put_object_with_user "s3api" "$TEST_FILE_FOLDER/$bucket_file" "$BUCKET_ONE_NAME" "$bucket_file" "$username" "$password"
|
||||
assert_failure
|
||||
assert_output --partial "object protected by object lock"
|
||||
assert_success
|
||||
|
||||
run delete_object_with_user "s3api" "$BUCKET_ONE_NAME" "$bucket_file" "$username" "$password"
|
||||
assert_failure 1
|
||||
# shellcheck disable=SC2154
|
||||
assert_output --partial "object protected by object lock"
|
||||
assert_success
|
||||
|
||||
run put_object_legal_hold "s3api" "$BUCKET_ONE_NAME" "$bucket_file" "OFF"
|
||||
assert_success
|
||||
@@ -171,14 +168,10 @@ test_get_put_object_retention_s3api_root() {
|
||||
|
||||
echo "fdkljafajkfs" > "$TEST_FILE_FOLDER/$bucket_file"
|
||||
run put_object_with_user "s3api" "$TEST_FILE_FOLDER/$bucket_file" "$BUCKET_ONE_NAME" "$bucket_file" "$username" "$secret_key"
|
||||
assert_failure
|
||||
# shellcheck disable=SC2154
|
||||
assert_output --partial "object protected by object lock"
|
||||
assert_success
|
||||
|
||||
run delete_object_with_user "s3api" "$BUCKET_ONE_NAME" "$bucket_file" "$username" "$secret_key"
|
||||
assert_failure
|
||||
# shellcheck disable=SC2154
|
||||
assert_output --partial "object protected by object lock"
|
||||
assert_success
|
||||
}
|
||||
|
||||
test_retention_bypass_s3api_root() {
|
||||
|
||||
Reference in New Issue
Block a user