mirror of
https://github.com/versity/versitygw.git
synced 2026-01-05 11:24:52 +00:00
59 lines
1.2 KiB
Go
59 lines
1.2 KiB
Go
package integration
|
|
|
|
func TestCreateBucket(s *S3Conf) {
|
|
CreateBucket_invalid_bucket_name(s)
|
|
CreateBucket_existing_bucket(s)
|
|
CreateDeleteBucket_success(s)
|
|
}
|
|
|
|
func TestDeleteBucket(s *S3Conf) {
|
|
DeleteBucket_non_existing_bucket(s)
|
|
DeleteBucket_non_empty_bucket(s)
|
|
}
|
|
|
|
func TestPutObject(s *S3Conf) {
|
|
PutObject_non_existing_bucket(s)
|
|
PutObject_special_chars(s)
|
|
PutObject_existing_dir_obj(s)
|
|
PutObject_obj_parent_is_file(s)
|
|
PutObject_success(s)
|
|
}
|
|
|
|
func TestGetObject(s *S3Conf) {
|
|
GetObject_non_existing_key(s)
|
|
GetObject_invalid_ranges(s)
|
|
GetObject_with_meta(s)
|
|
GetObject_success(s)
|
|
GetObject_by_range_success(s)
|
|
}
|
|
|
|
func TestCopyObject(s *S3Conf) {
|
|
CopyObject_non_existing_dst_bucket(s)
|
|
CopyObject_success(s)
|
|
}
|
|
|
|
func TestPutObjectTagging(s *S3Conf) {
|
|
PutObjectTagging_non_existing_object(s)
|
|
PutObjectTagging_success(s)
|
|
}
|
|
|
|
func TestGetObjectTagging(s *S3Conf) {
|
|
GetObjectTagging_non_existing_object(s)
|
|
GetObjectTagging_success(s)
|
|
}
|
|
|
|
func TestDeleteObjectTagging(s *S3Conf) {
|
|
DeleteObjectTagging_non_existing_object(s)
|
|
DeleteObjectTagging_success(s)
|
|
}
|
|
|
|
func TestFullFlow(s *S3Conf) {
|
|
TestCreateBucket(s)
|
|
TestDeleteBucket(s)
|
|
TestPutObject(s)
|
|
TestGetObject(s)
|
|
TestCopyObject(s)
|
|
TestPutObjectTagging(s)
|
|
TestDeleteObjectTagging(s)
|
|
}
|