Skip to content

Commit

Permalink
Merge branch 'master' into yori-nuke-s3
Browse files Browse the repository at this point in the history
  • Loading branch information
yorinasub17 authored Oct 15, 2020
2 parents 447d363 + 3fa2a49 commit d51e0b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws/ecs_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func TestCanListAllEcsClustersOlderThan24hours(t *testing.T) {
// Test we can nuke all ECS clusters older than 24hrs
func TestCanNukeAllEcsClustersOlderThan24Hours(t *testing.T) {
t.Parallel()
t.Skip("Skipping temporarily - will be fixed as part of issue-145")

awsSession, err := session.NewSession(&awsgo.Config{
Region: awsgo.String(region),
Expand Down
6 changes: 6 additions & 0 deletions aws/s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,12 @@ func testNukeS3Bucket(t *testing.T, args TestNukeS3BucketArgs) {
}
}

// Don't remove this.
// It ensures that all S3 buckets created as part of this test will be nuked after the test has run.
// This is necessary, as some test cases are expected to fail & test that the buckets with invalid args are not nuked.
// For more details, look at Github issue-140: https://github.com/gruntwork-io/cloud-nuke/issues/140
defer nukeAllS3Buckets(awsParams.awsSession, []*string{aws.String(bucketName)}, 1000)

// Nuke the test bucket
delCount, err := nukeAllS3Buckets(awsParams.awsSession, []*string{aws.String(bucketName)}, args.objectBatchsize)
if args.shouldError {
Expand Down

0 comments on commit d51e0b3

Please sign in to comment.