forked from TrueCloudLab/frostfs-s3-gw
[#535] Support public access block operations
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
This commit is contained in:
parent
4f0f2ca7bd
commit
a7ce40d745
23 changed files with 940 additions and 87 deletions
|
@ -152,6 +152,12 @@ func TestDetermineBucketOperation(t *testing.T) {
|
|||
method: http.MethodGet,
|
||||
expected: ListObjectsV1Operation,
|
||||
},
|
||||
{
|
||||
name: "GetPublicAccessBlockOperation",
|
||||
method: http.MethodGet,
|
||||
queryParam: map[string]string{PublicAccessBlockQuery: defaultValue},
|
||||
expected: GetPublicAccessBlockOperation,
|
||||
},
|
||||
{
|
||||
name: "UnmatchedBucketOperation GET",
|
||||
method: http.MethodGet,
|
||||
|
@ -217,6 +223,12 @@ func TestDetermineBucketOperation(t *testing.T) {
|
|||
method: http.MethodPut,
|
||||
expected: CreateBucketOperation,
|
||||
},
|
||||
{
|
||||
name: "PutPublicAccessBlockOperation",
|
||||
method: http.MethodPut,
|
||||
queryParam: map[string]string{PublicAccessBlockQuery: defaultValue},
|
||||
expected: PutPublicAccessBlockOperation,
|
||||
},
|
||||
{
|
||||
name: "UnmatchedBucketOperation PUT",
|
||||
method: http.MethodPut,
|
||||
|
@ -275,6 +287,12 @@ func TestDetermineBucketOperation(t *testing.T) {
|
|||
method: http.MethodDelete,
|
||||
expected: DeleteBucketOperation,
|
||||
},
|
||||
{
|
||||
name: "DeletePublicAccessBlockOperation",
|
||||
method: http.MethodDelete,
|
||||
queryParam: map[string]string{PublicAccessBlockQuery: defaultValue},
|
||||
expected: DeletePublicAccessBlockOperation,
|
||||
},
|
||||
{
|
||||
name: "UnmatchedBucketOperation DELETE",
|
||||
method: http.MethodDelete,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue