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/networkfirewall_resource_policy: add error handling during delete for possible RAM related error #22402

Merged
merged 2 commits into from
Jan 4, 2022

Conversation

anGie44
Copy link
Contributor

@anGie44 anGie44 commented Jan 4, 2022

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 #22174

Notes

  • error seems to occur only during immediate delete-after-create behavior seen during disappears acceptance testing as other tests were passing before code change

Output from acceptance testing:

--- PASS: TestAccNetworkFirewallResourcePolicy_disappears (131.81s)
--- PASS: TestAccNetworkFirewallResourcePolicy_ruleGroup (138.82s)
--- PASS: TestAccNetworkFirewallResourcePolicy_basic (139.01s)
--- PASS: TestAccNetworkFirewallResourcePolicy_Disappears_firewallPolicy (146.00s)
--- PASS: TestAccNetworkFirewallResourcePolicy_Disappears_ruleGroup (146.00s)
--- PASS: TestAccNetworkFirewallResourcePolicy_ignoreEquivalent (148.07s)

@github-actions github-actions bot added service/networkfirewall Issues and PRs that pertain to the networkfirewall service. size/XS Managed by automation to categorize the size of a PR. labels Jan 4, 2022
@ewbankkit ewbankkit self-assigned this Jan 4, 2022
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 TESTS=TestAccNetworkFirewallResourcePolicy_ PKG=networkfirewall
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/networkfirewall/... -v -count 1 -parallel 20 -run='TestAccNetworkFirewallResourcePolicy_' -timeout 180m
=== RUN   TestAccNetworkFirewallResourcePolicy_basic
=== PAUSE TestAccNetworkFirewallResourcePolicy_basic
=== RUN   TestAccNetworkFirewallResourcePolicy_ignoreEquivalent
=== PAUSE TestAccNetworkFirewallResourcePolicy_ignoreEquivalent
=== RUN   TestAccNetworkFirewallResourcePolicy_ruleGroup
=== PAUSE TestAccNetworkFirewallResourcePolicy_ruleGroup
=== RUN   TestAccNetworkFirewallResourcePolicy_disappears
=== PAUSE TestAccNetworkFirewallResourcePolicy_disappears
=== RUN   TestAccNetworkFirewallResourcePolicy_Disappears_firewallPolicy
=== PAUSE TestAccNetworkFirewallResourcePolicy_Disappears_firewallPolicy
=== RUN   TestAccNetworkFirewallResourcePolicy_Disappears_ruleGroup
=== PAUSE TestAccNetworkFirewallResourcePolicy_Disappears_ruleGroup
=== CONT  TestAccNetworkFirewallResourcePolicy_basic
=== CONT  TestAccNetworkFirewallResourcePolicy_Disappears_firewallPolicy
=== CONT  TestAccNetworkFirewallResourcePolicy_disappears
=== CONT  TestAccNetworkFirewallResourcePolicy_ignoreEquivalent
=== CONT  TestAccNetworkFirewallResourcePolicy_ruleGroup
=== CONT  TestAccNetworkFirewallResourcePolicy_Disappears_ruleGroup
--- PASS: TestAccNetworkFirewallResourcePolicy_ruleGroup (136.73s)
--- PASS: TestAccNetworkFirewallResourcePolicy_Disappears_ruleGroup (142.25s)
--- PASS: TestAccNetworkFirewallResourcePolicy_basic (156.44s)
--- PASS: TestAccNetworkFirewallResourcePolicy_disappears (157.25s)
--- PASS: TestAccNetworkFirewallResourcePolicy_ignoreEquivalent (158.06s)
--- PASS: TestAccNetworkFirewallResourcePolicy_Disappears_firewallPolicy (161.45s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/networkfirewall	166.810s

@ewbankkit ewbankkit removed their assignment Jan 4, 2022
@anGie44 anGie44 added the enhancement Requests to existing resources that expand the functionality or scope. label Jan 4, 2022
@anGie44 anGie44 added this to the v3.71.0 milestone Jan 4, 2022
@anGie44 anGie44 merged commit f391207 into main Jan 4, 2022
@anGie44 anGie44 deleted the f-networkfirewall-resource-policy-delete-time-error branch January 4, 2022 17:33
github-actions bot pushed a commit that referenced this pull request Jan 4, 2022
@github-actions
Copy link

github-actions bot commented Jan 6, 2022

This functionality has been released in v3.71.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!

@github-actions
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/networkfirewall Issues and PRs that pertain to the networkfirewall service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

networkfirewall/resource_policy: Disappears test failing
2 participants