-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sweepers/timestreamwrite_database: fix sweeper error handling; add _disappears test #19351
Conversation
aaf1369
to
366a9d3
Compare
366a9d3
to
2ed55ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSTimestreamWriteDatabase_disappears'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSTimestreamWriteDatabase_disappears -timeout 180m
=== RUN TestAccAWSTimestreamWriteDatabase_disappears
=== PAUSE TestAccAWSTimestreamWriteDatabase_disappears
=== CONT TestAccAWSTimestreamWriteDatabase_disappears
--- PASS: TestAccAWSTimestreamWriteDatabase_disappears (14.96s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 17.920s
% TEST=./aws SWEEP=us-west-2 SWEEPARGS=-sweep-run=aws_timestreamwrite_database make sweep
WARNING: This will destroy infrastructure. Use only in development accounts.
go test ./aws -v -sweep=us-west-2 -sweep-run=aws_timestreamwrite_database -timeout 60m
2021/05/13 10:42:53 [DEBUG] Running Sweepers for region (us-west-2):
2021/05/13 10:42:53 [DEBUG] Running Sweeper (aws_timestreamwrite_database) in region (us-west-2)
2021/05/13 10:42:53 [INFO] AWS Auth provider used: "EnvProvider"
2021/05/13 10:42:53 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2021/05/13 10:42:54 [DEBUG] Trying to get account information via sts:GetCallerIdentity
2021/05/13 10:42:57 Sweeper Tests ran successfully:
- aws_timestreamwrite_database
ok github.com/terraform-providers/terraform-provider-aws/aws 7.230s
Would be nice for resourceAwsTimestreamWriteDatabaseDelete
to have a log line like
log.Printf("[DEBUG] Deleting Timestream Database (%s)", d.Id())
I verified that a database I created via the AWS Console was deleted in the sweep.
@ewbankkit do you mean to give the sweeper output more context? I've noticed in some resources we've gone about reducing the amount of logging but I can definitely add a line in the test file Output of sweeper with change:
|
This has been released in version 3.40.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description:
DeleteWithoutTimeout
usage implemented in resourceOutput from acceptance testing: