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

fix: Fix check_certificate_revocation_status block being ignored due to autoflex issue for aws_networkfirewall_tls_inspection_configuration #39211

Conversation

acwwat
Copy link
Contributor

@acwwat acwwat commented Sep 8, 2024

Description

This PR is to fix an issue with the aws_networkfirewall_tls_inspection_configuration resource where the check_certificate_revovation_status block is ignored by resource creation because of a typo in the model field name (extra 's' in the name) that caused autoflex to skip it. As a result, the certificate revocation status settings are not applied.

The test case TestAccNetworkFirewallTLSInspectionConfiguration_checkCertificateRevocationStatus is also passing so that gives a false positive. After fixing the autoflex issue, the test case fails because the TF configuration is also incorrect. This issue is also fixed with the PR.

Relations

Closes #38690

References

Referred to CreateTLSInspectionConfiguration for specs.

Output from Acceptance Testing

$ make testacc TESTS=TestAccNetworkFirewallTLSInspectionConfiguration_ PKG=networkfirewall
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.0 test ./internal/service/networkfirewall/... -v -count 1 -parallel 20 -run='TestAccNetworkFirewallTLSInspectionConfiguration_'  -timeout 360m
=== RUN   TestAccNetworkFirewallTLSInspectionConfiguration_basic
=== PAUSE TestAccNetworkFirewallTLSInspectionConfiguration_basic
=== RUN   TestAccNetworkFirewallTLSInspectionConfiguration_disappears
=== PAUSE TestAccNetworkFirewallTLSInspectionConfiguration_disappears
=== RUN   TestAccNetworkFirewallTLSInspectionConfiguration_tags
=== PAUSE TestAccNetworkFirewallTLSInspectionConfiguration_tags
=== RUN   TestAccNetworkFirewallTLSInspectionConfiguration_encryptionConfiguration
=== PAUSE TestAccNetworkFirewallTLSInspectionConfiguration_encryptionConfiguration
=== RUN   TestAccNetworkFirewallTLSInspectionConfiguration_checkCertificateRevocationStatus
=== PAUSE TestAccNetworkFirewallTLSInspectionConfiguration_checkCertificateRevocationStatus
=== CONT  TestAccNetworkFirewallTLSInspectionConfiguration_basic
=== CONT  TestAccNetworkFirewallTLSInspectionConfiguration_encryptionConfiguration
=== CONT  TestAccNetworkFirewallTLSInspectionConfiguration_tags
=== CONT  TestAccNetworkFirewallTLSInspectionConfiguration_checkCertificateRevocationStatus
=== CONT  TestAccNetworkFirewallTLSInspectionConfiguration_disappears
--- PASS: TestAccNetworkFirewallTLSInspectionConfiguration_tags (161.77s)
--- PASS: TestAccNetworkFirewallTLSInspectionConfiguration_encryptionConfiguration (164.64s)
--- PASS: TestAccNetworkFirewallTLSInspectionConfiguration_basic (166.39s)
--- PASS: TestAccNetworkFirewallTLSInspectionConfiguration_disappears (190.89s)
--- PASS: TestAccNetworkFirewallTLSInspectionConfiguration_checkCertificateRevocationStatus (200.23s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/networkfirewall    200.553s

$

@acwwat acwwat requested a review from a team as a code owner September 8, 2024 06:31
Copy link

github-actions bot commented Sep 8, 2024

Community Note

Voting for Prioritization

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

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/networkfirewall Issues and PRs that pertain to the networkfirewall service. needs-triage Waiting for first response or review from a maintainer. external-maintainer Contribution from a trusted external contributor. labels Sep 8, 2024
@acwwat acwwat force-pushed the b-aws_networkfirewall_tls_inspection_configuration-fix_check_certificate_revocation_status_autoflex branch from 6541d21 to a9825a5 Compare September 8, 2024 06:35
…to autoflex issue for aws_networkfirewall_tls_inspection_configuration
@acwwat acwwat force-pushed the b-aws_networkfirewall_tls_inspection_configuration-fix_check_certificate_revocation_status_autoflex branch from a9825a5 to ee199a5 Compare September 8, 2024 06:36
@acwwat acwwat changed the title fix: Fix check_certificate_revocation_status block being ignored due … fix: Fix check_certificate_revocation_status block being ignored due to autoflex issue for aws_networkfirewall_tls_inspection_configuration Sep 8, 2024
@ewbankkit ewbankkit added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Sep 11, 2024
@ewbankkit ewbankkit self-assigned this Sep 11, 2024
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 TESTARGS='-run=TestAccNetworkFirewallTLSInspectionConfiguration_' PKG=networkfirewall ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/networkfirewall/... -v -count 1 -parallel 3  -run=TestAccNetworkFirewallTLSInspectionConfiguration_ -timeout 360m
=== RUN   TestAccNetworkFirewallTLSInspectionConfiguration_basic
=== PAUSE TestAccNetworkFirewallTLSInspectionConfiguration_basic
=== RUN   TestAccNetworkFirewallTLSInspectionConfiguration_disappears
=== PAUSE TestAccNetworkFirewallTLSInspectionConfiguration_disappears
=== RUN   TestAccNetworkFirewallTLSInspectionConfiguration_tags
=== PAUSE TestAccNetworkFirewallTLSInspectionConfiguration_tags
=== RUN   TestAccNetworkFirewallTLSInspectionConfiguration_encryptionConfiguration
=== PAUSE TestAccNetworkFirewallTLSInspectionConfiguration_encryptionConfiguration
=== RUN   TestAccNetworkFirewallTLSInspectionConfiguration_checkCertificateRevocationStatus
=== PAUSE TestAccNetworkFirewallTLSInspectionConfiguration_checkCertificateRevocationStatus
=== CONT  TestAccNetworkFirewallTLSInspectionConfiguration_basic
=== CONT  TestAccNetworkFirewallTLSInspectionConfiguration_encryptionConfiguration
=== CONT  TestAccNetworkFirewallTLSInspectionConfiguration_tags
--- PASS: TestAccNetworkFirewallTLSInspectionConfiguration_basic (176.10s)
=== CONT  TestAccNetworkFirewallTLSInspectionConfiguration_disappears
--- PASS: TestAccNetworkFirewallTLSInspectionConfiguration_tags (178.23s)
=== CONT  TestAccNetworkFirewallTLSInspectionConfiguration_checkCertificateRevocationStatus
--- PASS: TestAccNetworkFirewallTLSInspectionConfiguration_encryptionConfiguration (178.79s)
--- PASS: TestAccNetworkFirewallTLSInspectionConfiguration_disappears (175.00s)
--- PASS: TestAccNetworkFirewallTLSInspectionConfiguration_checkCertificateRevocationStatus (198.36s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/networkfirewall	381.644s

@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Sep 11, 2024
@ewbankkit
Copy link
Contributor

@acwwat Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit d45b7da into hashicorp:main Sep 11, 2024
39 checks passed
@github-actions github-actions bot added this to the v5.67.0 milestone Sep 11, 2024
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Sep 13, 2024
Copy link

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

@acwwat acwwat deleted the b-aws_networkfirewall_tls_inspection_configuration-fix_check_certificate_revocation_status_autoflex branch September 16, 2024 00:12
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 Oct 16, 2024
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. external-maintainer Contribution from a trusted external contributor. service/networkfirewall Issues and PRs that pertain to the networkfirewall service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: check_certificate_revocation_status ignored on aws_networkfirewall_tls_inspection_configuration
2 participants