Skip to content
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_plan - remove validation #16605

Merged
merged 2 commits into from
Dec 9, 2020

Conversation

DrFaust92
Copy link
Collaborator

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #16583

Release note for CHANGELOG:

resource_aws_backup_plan - remove validation for `delete_after`

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAwsBackupPlan_'
--- PASS: TestAccAwsBackupPlan_disappears (40.75s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_CrossRegion (46.57s)
--- PASS: TestAccAwsBackupPlan_basic (47.20s)
--- PASS: TestAccAwsBackupPlan_AdvancedBackupSetting (50.51s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_Multiple (50.55s)
--- PASS: TestAccAwsBackupPlan_withRules (109.77s)
--- PASS: TestAccAwsBackupPlan_withRecoveryPointTags (111.09s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_NoLifecycle (112.12s)
--- PASS: TestAccAwsBackupPlan_withTags (112.96s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_SameRegion (115.59s)
--- PASS: TestAccAwsBackupPlan_withLifecycle (142.01s)

@DrFaust92 DrFaust92 requested a review from a team as a code owner December 4, 2020 21:59
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/backup Issues and PRs that pertain to the backup service. labels Dec 4, 2020
Copy link
Contributor

@ewbankkit ewbankkit left a 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=TestAccAwsBackupPlan_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsBackupPlan_ -timeout 120m
=== RUN   TestAccAwsBackupPlan_basic
=== PAUSE TestAccAwsBackupPlan_basic
=== RUN   TestAccAwsBackupPlan_withTags
=== PAUSE TestAccAwsBackupPlan_withTags
=== RUN   TestAccAwsBackupPlan_withRules
=== PAUSE TestAccAwsBackupPlan_withRules
=== RUN   TestAccAwsBackupPlan_withLifecycle
=== PAUSE TestAccAwsBackupPlan_withLifecycle
=== RUN   TestAccAwsBackupPlan_withRecoveryPointTags
=== PAUSE TestAccAwsBackupPlan_withRecoveryPointTags
=== RUN   TestAccAwsBackupPlan_Rule_CopyAction_SameRegion
=== PAUSE TestAccAwsBackupPlan_Rule_CopyAction_SameRegion
=== RUN   TestAccAwsBackupPlan_Rule_CopyAction_NoLifecycle
=== PAUSE TestAccAwsBackupPlan_Rule_CopyAction_NoLifecycle
=== RUN   TestAccAwsBackupPlan_Rule_CopyAction_Multiple
=== PAUSE TestAccAwsBackupPlan_Rule_CopyAction_Multiple
=== RUN   TestAccAwsBackupPlan_Rule_CopyAction_CrossRegion
=== PAUSE TestAccAwsBackupPlan_Rule_CopyAction_CrossRegion
=== RUN   TestAccAwsBackupPlan_AdvancedBackupSetting
=== PAUSE TestAccAwsBackupPlan_AdvancedBackupSetting
=== RUN   TestAccAwsBackupPlan_disappears
=== PAUSE TestAccAwsBackupPlan_disappears
=== CONT  TestAccAwsBackupPlan_basic
=== CONT  TestAccAwsBackupPlan_Rule_CopyAction_NoLifecycle
=== CONT  TestAccAwsBackupPlan_disappears
=== CONT  TestAccAwsBackupPlan_AdvancedBackupSetting
=== CONT  TestAccAwsBackupPlan_Rule_CopyAction_CrossRegion
=== CONT  TestAccAwsBackupPlan_Rule_CopyAction_Multiple
=== CONT  TestAccAwsBackupPlan_withLifecycle
=== CONT  TestAccAwsBackupPlan_Rule_CopyAction_SameRegion
=== CONT  TestAccAwsBackupPlan_withRecoveryPointTags
=== CONT  TestAccAwsBackupPlan_withRules
=== CONT  TestAccAwsBackupPlan_withTags
--- PASS: TestAccAwsBackupPlan_disappears (37.45s)
--- PASS: TestAccAwsBackupPlan_AdvancedBackupSetting (37.85s)
--- PASS: TestAccAwsBackupPlan_basic (37.95s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_Multiple (43.53s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_CrossRegion (44.46s)
--- PASS: TestAccAwsBackupPlan_withRecoveryPointTags (73.69s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_NoLifecycle (77.43s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_SameRegion (77.77s)
--- PASS: TestAccAwsBackupPlan_withTags (78.79s)
--- PASS: TestAccAwsBackupPlan_withRules (78.91s)
--- PASS: TestAccAwsBackupPlan_withLifecycle (89.31s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	89.464s

Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @DrFaust92, this is looking good. I believe you'll just also need to remove the validation within lifecycle delete_after 👍

@anGie44 anGie44 added the bug Addresses a defect in current functionality. label Dec 7, 2020
@ghost ghost added size/S Managed by automation to categorize the size of a PR. and removed size/XS Managed by automation to categorize the size of a PR. labels Dec 7, 2020
@DrFaust92 DrFaust92 requested a review from anGie44 December 7, 2020 20:30
@DrFaust92
Copy link
Collaborator Author

@anGie44 , Thanks missed the second one.

@guterz
Copy link

guterz commented Dec 9, 2020

Any update on when this will be merged?

@anGie44
Copy link
Contributor

anGie44 commented Dec 9, 2020

Hi @guterz , we'll have this in the v3.21.0 release of the provider, likely out this Thursday 👍

@anGie44 anGie44 added this to the v3.21.0 milestone Dec 9, 2020
Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix @DrFaust92 👍

Output of acceptance tests (commerical):

--- PASS: TestAccAwsBackupPlan_disappears (34.96s)
--- PASS: TestAccAwsBackupPlan_AdvancedBackupSetting (35.54s)
--- PASS: TestAccAwsBackupPlan_basic (37.94s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_Multiple (38.86s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_CrossRegion (47.50s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_SameRegion (67.10s)
--- PASS: TestAccAwsBackupPlan_withRules (68.34s)
--- PASS: TestAccAwsBackupPlan_Rule_CopyAction_NoLifecycle (68.38s)
--- PASS: TestAccAwsBackupPlan_withTags (68.91s)
--- PASS: TestAccAwsBackupPlan_withRecoveryPointTags (69.29s)
--- PASS: TestAccAwsBackupPlan_withLifecycle (77.40s)

@anGie44 anGie44 merged commit af5d6b3 into hashicorp:master Dec 9, 2020
anGie44 added a commit that referenced this pull request Dec 9, 2020
@ghost
Copy link

ghost commented Dec 11, 2020

This has been released in version 3.21.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!

@ghost
Copy link

ghost commented Jan 9, 2021

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!

@ghost ghost locked as resolved and limited conversation to collaborators Jan 9, 2021
@DrFaust92 DrFaust92 deleted the r/backup_plan_remove_validation branch April 15, 2021 10:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/backup Issues and PRs that pertain to the backup service. size/S Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v3.20.0 breaks already running AWS Back configuration
4 participants