-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
r/aws_backup_plan: Add missing tags_all
attribute
#19143
Conversation
Before fix: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSBackupPlanDataSource_basic' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSBackupPlanDataSource_basic -timeout 180m === RUN TestAccAWSBackupPlanDataSource_basic === PAUSE TestAccAWSBackupPlanDataSource_basic === CONT TestAccAWSBackupPlanDataSource_basic data_source_aws_backup_plan_test.go:18: Step 2/2 error: Error running pre-apply plan: exit status 1 2021/04/28 14:33:26 [DEBUG] Using modified User-Agent: Terraform/0.12.30 HashiCorp-terraform-exec/0.13.3 Error: error setting new tags_all diff: SetNew: invalid key: tags_all on terraform_plugin_test.tf line 6, in resource "aws_backup_plan" "test": 6: resource "aws_backup_plan" "test" { --- FAIL: TestAccAWSBackupPlanDataSource_basic (5.09s) FAIL FAIL github.com/terraform-providers/terraform-provider-aws/aws 8.254s FAIL make: *** [testacc] Error 1 Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSBackupPlanDataSource_basic' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSBackupPlanDataSource_basic -timeout 180m === RUN TestAccAWSBackupPlanDataSource_basic === PAUSE TestAccAWSBackupPlanDataSource_basic === CONT TestAccAWSBackupPlanDataSource_basic --- PASS: TestAccAWSBackupPlanDataSource_basic (18.13s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 22.042s
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.
Looks good to me, although it may be good to separately fix the potential for panic in tags.go
, e.g. using (schema.ResourceDiff).GetOk
or type assertion checks.
Output from acceptance testing:
--- PASS: TestAccAWSBackupPlanDataSource_basic (21.00s)
--- PASS: TestAccAWSBackupSelectionDataSource_basic (22.04s)
--- PASS: TestAccAwsBackupPlan_AdvancedBackupSetting (66.81s)
--- PASS: TestAccAwsBackupPlan_basic (46.54s)
--- PASS: TestAccAwsBackupPlan_disappears (38.67s)
--- PASS: TestAccAwsBackupPlan_EnableContinuousBackup (45.68s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_CrossRegion (57.45s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_Multiple (42.90s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_NoLifecycle (80.23s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_SameRegion (81.21s)
--- PASS: TestAccAwsBackupPlan_withLifecycle (90.12s)
--- PASS: TestAccAwsBackupPlan_withRecoveryPointTags (81.14s)
--- PASS: TestAccAwsBackupPlan_withRules (80.43s)
--- PASS: TestAccAwsBackupPlan_withTags (78.90s)
I thought about that but decided right now to leave as is - a panic catches the attention... |
This has been released in version 3.38.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
Relates: #18715.
Relates: #7926.
Before fix:
Output from acceptance testing:
Commercial
GovCloud