@@ -124,7 +124,7 @@ test_file="test_file"
124
124
run bucket_cleanup_if_bucket_exists " s3api" " $BUCKET_ONE_NAME "
125
125
assert_success
126
126
# in static bucket config, bucket will still exist
127
- if ! bucket_exists " s3api " " $BUCKET_ONE_NAME " ; then
127
+ if ! bucket_exists " rest " " $BUCKET_ONE_NAME " ; then
128
128
run create_bucket_object_lock_enabled " $BUCKET_ONE_NAME "
129
129
assert_success
130
130
fi
@@ -155,7 +155,7 @@ test_file="test_file"
155
155
assert_success
156
156
157
157
# in static bucket config, bucket will still exist
158
- if ! bucket_exists " s3api " " $BUCKET_ONE_NAME " ; then
158
+ if ! bucket_exists " rest " " $BUCKET_ONE_NAME " ; then
159
159
run create_bucket_object_lock_enabled " $BUCKET_ONE_NAME "
160
160
assert_success
161
161
fi
@@ -456,7 +456,7 @@ test_file="test_file"
456
456
assert_success
457
457
458
458
# in static bucket config, bucket will still exist
459
- if ! bucket_exists " s3api " " $BUCKET_ONE_NAME " ; then
459
+ if ! bucket_exists " rest " " $BUCKET_ONE_NAME " ; then
460
460
run create_bucket_object_lock_enabled " $BUCKET_ONE_NAME "
461
461
assert_success
462
462
fi
@@ -482,7 +482,7 @@ test_file="test_file"
482
482
assert_success
483
483
484
484
# in static bucket config, bucket will still exist
485
- if ! bucket_exists " s3api " " $BUCKET_ONE_NAME " ; then
485
+ if ! bucket_exists " rest " " $BUCKET_ONE_NAME " ; then
486
486
run create_bucket_object_lock_enabled " $BUCKET_ONE_NAME "
487
487
assert_success
488
488
fi
@@ -499,3 +499,24 @@ test_file="test_file"
499
499
run get_delete_marker_and_verify_405 " $BUCKET_ONE_NAME " " $test_file "
500
500
assert_success
501
501
}
502
+
503
+ @test " REST - invalid 'Expires' parameter" {
504
+ run setup_bucket_and_file " $BUCKET_ONE_NAME " " $test_file "
505
+ assert_success
506
+
507
+ run put_object_rest_check_expires_header " $TEST_FILE_FOLDER /$test_file " " $BUCKET_ONE_NAME " " $test_file "
508
+ assert_success
509
+ }
510
+
511
+ @test " REST - HeadBucket" {
512
+ run setup_bucket " s3api" " $BUCKET_ONE_NAME "
513
+ assert_success
514
+
515
+ run head_bucket_rest " $BUCKET_ONE_NAME "
516
+ assert_success
517
+ }
518
+
519
+ @test " REST - HeadBucket - doesn't exist" {
520
+ run head_bucket_rest " $BUCKET_ONE_NAME "
521
+ assert_failure 1
522
+ }
0 commit comments