test: versioning skips for static

This commit is contained in:
Luke McCrone
2025-09-22 17:39:36 -03:00
parent 6ae48f709b
commit 352cd5dc94

View File

@@ -26,15 +26,16 @@ source ./tests/util/util_setup.sh
test_file="test_file"
@test "REST - check, enable, suspend versioning" {
if [ "$RECREATE_BUCKETS" == "false" ]; then
skip "cannot test versioning changes in static mode"
fi
run setup_bucket "$BUCKET_ONE_NAME"
assert_success
log 5 "get versioning"
if [ "$RECREATE_BUCKETS" != "true" ]; then
run check_versioning_status_rest "$BUCKET_ONE_NAME" ""
assert_success
fi
run check_versioning_status_rest "$BUCKET_ONE_NAME" ""
assert_success
run put_bucket_versioning_rest "$BUCKET_ONE_NAME" "Enabled"
assert_success
@@ -50,6 +51,9 @@ test_file="test_file"
}
@test "test_rest_versioning" {
if [ "$RECREATE_BUCKETS" == "false" ]; then
skip "cannot test versioning changes in static mode"
fi
run setup_bucket_and_file "$BUCKET_ONE_NAME" "$test_file"
assert_success
@@ -73,6 +77,9 @@ test_file="test_file"
}
@test "versioning - add version, then delete and check for marker" {
if [ "$RECREATE_BUCKETS" == "false" ]; then
skip "cannot test versioning changes in static mode"
fi
run setup_bucket_and_file "$BUCKET_ONE_NAME" "$test_file"
assert_success