-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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/backup_vault_notifications - Add new resource #12501
r/backup_vault_notifications - Add new resource #12501
Conversation
Verified acceptance tests: $ make testacc TEST=./aws TESTARGS='-run=TestAccAwsBackupVaultNotification_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsBackupVaultNotification_ -timeout 120m
=== RUN TestAccAwsBackupVaultNotification_basic
=== PAUSE TestAccAwsBackupVaultNotification_basic
=== RUN TestAccAwsBackupVaultNotification_disappears
=== PAUSE TestAccAwsBackupVaultNotification_disappears
=== CONT TestAccAwsBackupVaultNotification_basic
=== CONT TestAccAwsBackupVaultNotification_disappears
--- PASS: TestAccAwsBackupVaultNotification_disappears (29.02s)
--- PASS: TestAccAwsBackupVaultNotification_basic (29.67s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 29.712s |
any ETA to merge it? |
+1 where's the merge? |
+1 |
please merge this one |
@DrFaust92 Could you please add a test sweeper for |
6ba57a0
to
3051f44
Compare
Added sweeper + dependency |
0f15ca2
to
df67aa1
Compare
Need to |
Co-authored-by: Kit Ewbank <[email protected]>
Co-authored-by: Kit Ewbank <[email protected]>
Co-authored-by: Kit Ewbank <[email protected]>
Co-authored-by: Kit Ewbank <[email protected]>
f669b46
to
129414f
Compare
rebased |
@DrFaust92 I got these errors when running the acceptance tests: $ make testacc TEST=./aws TESTARGS='-run=TestAccAwsBackupVaultNotification_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsBackupVaultNotification_ -timeout 120m
=== RUN TestAccAwsBackupVaultNotification_basic
=== PAUSE TestAccAwsBackupVaultNotification_basic
=== RUN TestAccAwsBackupVaultNotification_disappears
=== PAUSE TestAccAwsBackupVaultNotification_disappears
=== CONT TestAccAwsBackupVaultNotification_basic
=== CONT TestAccAwsBackupVaultNotification_disappears
=== CONT TestAccAwsBackupVaultNotification_basic
resource_aws_backup_vault_notifications_test.go:78: Step 1/2 error: terraform failed: exit status 1
stderr:
Error: invalid value for backup_vault_name (must consist of lowercase letters, numbers, and hyphens.)
on config411170255/terraform_plugin_test.tf line 39, in resource "aws_backup_vault_notifications" "test":
39: backup_vault_name = aws_backup_vault.test.name
=== CONT TestAccAwsBackupVaultNotification_disappears
resource_aws_backup_vault_notifications_test.go:104: Step 1/1 error: terraform failed: exit status 1
stderr:
Error: invalid value for backup_vault_name (must consist of lowercase letters, numbers, and hyphens.)
on config601163989/terraform_plugin_test.tf line 39, in resource "aws_backup_vault_notifications" "test":
39: backup_vault_name = aws_backup_vault.test.name
--- FAIL: TestAccAwsBackupVaultNotification_basic (4.95s)
--- FAIL: TestAccAwsBackupVaultNotification_disappears (5.00s)
FAIL
FAIL github.com/terraform-providers/terraform-provider-aws/aws 5.047s
FAIL
GNUmakefile:27: recipe for target 'testacc' failed
make: *** [testacc] Error 1 |
Probably got to do with my change to validation, reverted and tested it to work. |
+1 Any idea when this will be merged? |
LGTM! 🚀 Thanks @DrFaust92 Verified Acceptance Tests in Commercial (us-west-2) make testacc TEST=./aws TESTARGS='-run=TestAccAwsBackupVaultNotification_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsBackupVaultNotification_ -timeout 120m
=== RUN TestAccAwsBackupVaultNotification_basic
=== PAUSE TestAccAwsBackupVaultNotification_basic
=== RUN TestAccAwsBackupVaultNotification_disappears
=== PAUSE TestAccAwsBackupVaultNotification_disappears
=== CONT TestAccAwsBackupVaultNotification_basic
=== CONT TestAccAwsBackupVaultNotification_disappears
resource_aws_backup_vault_notifications_test.go:104: [INFO] Got non-empty plan, as expected
--- PASS: TestAccAwsBackupVaultNotification_disappears (16.45s)
--- PASS: TestAccAwsBackupVaultNotification_basic (17.54s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 18.860s Verified Acceptance Tests in GovCloud (us-gov-west-1) make testacc TEST=./aws TESTARGS='-run=TestAccAwsBackupVaultNotification_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsBackupVaultNotification_ -timeout 120m
=== RUN TestAccAwsBackupVaultNotification_basic
=== PAUSE TestAccAwsBackupVaultNotification_basic
=== RUN TestAccAwsBackupVaultNotification_disappears
=== PAUSE TestAccAwsBackupVaultNotification_disappears
=== CONT TestAccAwsBackupVaultNotification_basic
=== CONT TestAccAwsBackupVaultNotification_disappears
resource_aws_backup_vault_notifications_test.go:104: [INFO] Got non-empty plan, as expected
--- PASS: TestAccAwsBackupVaultNotification_disappears (11.39s)
--- PASS: TestAccAwsBackupVaultNotification_basic (12.57s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 13.877s |
This has been released in version 3.9.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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Closes #8727
Release note for CHANGELOG:
Output from acceptance testing: