From 3f79d02273bcabc7170d29d5ec5ed813a84db66f Mon Sep 17 00:00:00 2001 From: Jason Del Ponte <961963+jasdel@users.noreply.github.com> Date: Tue, 22 Mar 2022 13:01:45 -0700 Subject: [PATCH] Remove unneeded destructive integration tests for Amazon S3 Control API --- .../integrationtest/s3control/api_test.go | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/service/internal/integrationtest/s3control/api_test.go b/service/internal/integrationtest/s3control/api_test.go index 900980ed7f1..fb9ee81cda7 100644 --- a/service/internal/integrationtest/s3control/api_test.go +++ b/service/internal/integrationtest/s3control/api_test.go @@ -19,26 +19,10 @@ func TestInteg_PublicAccessBlock(t *testing.T) { AccountId: aws.String(accountID), }) if err != nil { + // Ignore NoSuchPublicAccessBlockConfiguration, but fail on any other error. var e *types.NoSuchPublicAccessBlockConfiguration if !errors.As(err, &e) { t.Fatalf("expect no error for GetPublicAccessBlock, got %v", err) } } - - _, err = svc.PutPublicAccessBlock(ctx, &s3control.PutPublicAccessBlockInput{ - AccountId: aws.String(accountID), - PublicAccessBlockConfiguration: &types.PublicAccessBlockConfiguration{ - IgnorePublicAcls: true, - }, - }) - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - - _, err = svc.DeletePublicAccessBlock(ctx, &s3control.DeletePublicAccessBlockInput{ - AccountId: aws.String(accountID), - }) - if err != nil { - t.Fatalf("expect no error, got %v", err) - } }