-
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
fix: update approve_after_days validation in ssm patch baseline resource #39949
fix: update approve_after_days validation in ssm patch baseline resource #39949
Conversation
Community NoteVoting for Prioritization
For Submitters
|
8c42547
to
b2b4d7a
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 PKG=ssm TESTS=TestAccSSMPatchBaseline_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/ssm/... -v -count 1 -parallel 20 -run='TestAccSSMPatchBaseline_' -timeout 360m
2024/10/31 10:40:51 Initializing Terraform AWS Provider...
--- PASS: TestAccSSMPatchBaseline_rejectPatchesAction (39.34s)
=== CONT TestAccSSMPatchBaseline_sources
--- PASS: TestAccSSMPatchBaseline_approvedPatchesNonSec (39.45s)
=== CONT TestAccSSMPatchBaseline_approveAfterDays
--- PASS: TestAccSSMPatchBaseline_tags_DefaultTags_nullOverlappingResourceTag (47.56s)
=== CONT TestAccSSMPatchBaseline_tags_IgnoreTags_Overlap_DefaultTag
--- PASS: TestAccSSMPatchBaseline_tags_DefaultTags_nullNonOverlappingResourceTag (47.78s)
=== CONT TestAccSSMPatchBaseline_approveUntilDateParam
--- PASS: TestAccSSMPatchBaseline_tags_DefaultTags_emptyResourceTag (47.93s)
=== CONT TestAccSSMPatchBaseline_disappears
--- PASS: TestAccSSMPatchBaseline_tags_DefaultTags_emptyProviderOnlyTag (48.20s)
=== CONT TestAccSSMPatchBaseline_tags_ComputedTag_OnUpdate_Add
--- PASS: TestAccSSMPatchBaseline_tags_EmptyMap (60.35s)
=== CONT TestAccSSMPatchBaseline_basic
--- PASS: TestAccSSMPatchBaseline_tags_null (60.49s)
=== CONT TestAccSSMPatchBaseline_tags_IgnoreTags_Overlap_ResourceTag
--- PASS: TestAccSSMPatchBaseline_operatingSystem (64.76s)
=== CONT TestAccSSMPatchBaseline_tags_ComputedTag_OnCreate
--- PASS: TestAccSSMPatchBaseline_approvalRuleEmpty (66.69s)
=== CONT TestAccSSMPatchBaseline_tags_ComputedTag_OnUpdate_Replace
--- PASS: TestAccSSMPatchBaseline_approveAfterDays (31.08s)
--- PASS: TestAccSSMPatchBaseline_tags_DefaultTags_updateToResourceOnly (77.01s)
--- PASS: TestAccSSMPatchBaseline_tags_EmptyTag_OnUpdate_Replace (79.14s)
--- PASS: TestAccSSMPatchBaseline_tags_DefaultTags_updateToProviderOnly (79.30s)
--- PASS: TestAccSSMPatchBaseline_tags_AddOnUpdate (79.42s)
--- PASS: TestAccSSMPatchBaseline_disappears (32.27s)
--- PASS: TestAccSSMPatchBaseline_tags_EmptyTag_OnCreate (85.16s)
--- PASS: TestAccSSMPatchBaseline_sources (53.38s)
--- PASS: TestAccSSMPatchBaseline_approveUntilDateParam (51.95s)
--- PASS: TestAccSSMPatchBaseline_tags_ComputedTag_OnCreate (36.32s)
--- PASS: TestAccSSMPatchBaseline_tags_EmptyTag_OnUpdate_Add (101.43s)
--- PASS: TestAccSSMPatchBaseline_tags_ComputedTag_OnUpdate_Add (56.63s)
--- PASS: TestAccSSMPatchBaseline_tags_DefaultTags_nonOverlapping (106.61s)
--- PASS: TestAccSSMPatchBaseline_basic (47.36s)
--- PASS: TestAccSSMPatchBaseline_tags_DefaultTags_overlapping (107.72s)
--- PASS: TestAccSSMPatchBaseline_tags_IgnoreTags_Overlap_DefaultTag (63.37s)
--- PASS: TestAccSSMPatchBaseline_tags_ComputedTag_OnUpdate_Replace (47.23s)
--- PASS: TestAccSSMPatchBaseline_tags (119.82s)
--- PASS: TestAccSSMPatchBaseline_tags_DefaultTags_providerOnly (120.51s)
--- PASS: TestAccSSMPatchBaseline_tags_IgnoreTags_Overlap_ResourceTag (60.13s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ssm 125.671s
Thanks for your contribution, @stefanfreitag! 👍 |
Thanks for updating the PR :) Always good to see how/ where to improve! |
This functionality has been released in v5.74.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. Thank you! |
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. |
Description
As described in #39917 the validation range for the
approve_after_days
setting is not matching the range described in the official docs (seeReferences
section).The PR updates the range from 0-100 to 0-360. In addition, the documentation for the resource is updated.
Relations
Closes #39917
References
Output from Acceptance Testing