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

f-data-networkfirewall_firewall_policy #24748

Merged

Conversation

ddericco
Copy link
Contributor

@ddericco ddericco commented May 11, 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

Relates #18026

TODO:

Output from acceptance testing:

make testacc TESTS=TestAccFirewallPolicy_arn PKG=networkfirewall
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/networkfirewall/... -v -count 1 -parallel 20 -run='TestAccFirewallPolicy_arn'  -timeout 180m
=== RUN   TestAccFirewallPolicy_arn
=== PAUSE TestAccFirewallPolicy_arn
=== CONT  TestAccFirewallPolicy_arn
--- PASS: TestAccFirewallPolicy_arn (140.91s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/networkfirewall    143.258s

...

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. size/XL Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/networkfirewall Issues and PRs that pertain to the networkfirewall service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels May 11, 2022
@ddericco
Copy link
Contributor Author

Output from all acceptance tests:

$ make testacc TESTS=TestAccFirewallPolicy_ PKG=networkfirewall 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/networkfirewall/... -v -count 1 -parallel 20 -run='TestAccFirewallPolicy_'  -timeout 180m
=== RUN   TestAccFirewallPolicy_arn
=== PAUSE TestAccFirewallPolicy_arn
=== RUN   TestAccFirewallPolicy_name
=== PAUSE TestAccFirewallPolicy_name
=== RUN   TestAccFirewallPolicy_nameAndArn
=== PAUSE TestAccFirewallPolicy_nameAndArn
=== CONT  TestAccFirewallPolicy_arn
=== CONT  TestAccFirewallPolicy_nameAndArn
=== CONT  TestAccFirewallPolicy_name
--- PASS: TestAccFirewallPolicy_nameAndArn (133.27s)
--- PASS: TestAccFirewallPolicy_name (133.37s)
--- PASS: TestAccFirewallPolicy_arn (134.55s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/networkfirewall    136.848s

@ddericco ddericco marked this pull request as ready for review May 12, 2022 00:58
@justinretzolk justinretzolk added new-data-source Introduces a new data source. and removed needs-triage Waiting for first response or review from a maintainer. labels May 12, 2022
@ddericco ddericco requested a review from ewbankkit as a code owner June 20, 2022 12:44
@github-actions
Copy link

Thank you for your contribution! 🚀

Please note that the CHANGELOG.md file contents are handled by the maintainers during merge. This is to prevent pull request merge conflicts, especially for contributions which may not be merged immediately. Please see the Contributing Guide for additional pull request review items.

Remove any changes to the CHANGELOG.md file and commit them in this pull request to prevent delays with reviewing and potentially merging this pull request.

@github-actions
Copy link

Thank you for your contribution! 🚀

Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the go.mod or go.sum files and commit them into this pull request.

Additional details:

  • Check open pull requests with the dependencies label to view other dependency updates.
  • If this pull request includes an update the AWS Go SDK (or any other dependency) version, only updates submitted via dependabot will be merged. This pull request will need to remove these changes and will need to be rebased after the existing dependency update via dependabot has been merged for this pull request to be reviewed.
  • If this pull request is for supporting a new AWS service:
    • Ensure the new AWS service changes are following the Contributing Guide section on new services, in particular that the dependency addition and initial provider support are in a separate pull request from other changes (e.g. new resources). Contributions not following this item will not be reviewed until the changes are split.
    • If this pull request is already a separate pull request from the above item, you can ignore this message.

@drewmullen drewmullen force-pushed the f-data-networkfirewall_firewall_policy branch from 5fd0431 to 21e5d13 Compare June 20, 2022 19:52
@github-actions github-actions bot added the service/ec2 Issues and PRs that pertain to the ec2 service. label Jun 20, 2022
@ddericco ddericco force-pushed the f-data-networkfirewall_firewall_policy branch from 21e5d13 to f9e7e47 Compare June 20, 2022 20:08
@github-actions github-actions bot removed the service/ec2 Issues and PRs that pertain to the ec2 service. label Jun 20, 2022
@ddericco ddericco force-pushed the f-data-networkfirewall_firewall_policy branch from f9e7e47 to f045aae Compare June 20, 2022 20:10
@GlennChia GlennChia self-requested a review June 27, 2022 14:10
 - Fix misc. formatting issues and clean up unneeded comments
 - Update acceptance tests to compare ARN from datasource and resource
 - Simplify debugging statements with `diag.Errorf()`
Copy link
Collaborator

@GlennChia GlennChia left a comment

Choose a reason for hiding this comment

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

Good first PR @ddericco. Requesting small changes.

ddericco and others added 2 commits July 5, 2022 16:38
Co-authored-by: Glenn <31919569+GlennChia@users.noreply.github.com>
Copy link
Collaborator

@GlennChia GlennChia left a comment

Choose a reason for hiding this comment

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

Second round of reviews

Copy link
Collaborator

@GlennChia GlennChia left a comment

Choose a reason for hiding this comment

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

Changes LGTM. Will need the output of the acceptance tests again since there were a number of changes @ddericco

@ddericco
Copy link
Contributor Author

ddericco commented Jul 6, 2022

@GlennChia Output from acceptance test after all changes:

$ make testacc TESTS=TestAccFirewallPolicy_ PKG=networkfirewall
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/networkfirewall/... -v -count 1 -parallel 20 -run='TestAccFirewallPolicy_'  -timeout 180m
=== RUN   TestAccFirewallPolicy_arn
=== PAUSE TestAccFirewallPolicy_arn
=== RUN   TestAccFirewallPolicy_name
=== PAUSE TestAccFirewallPolicy_name
=== RUN   TestAccFirewallPolicy_nameAndArn
=== PAUSE TestAccFirewallPolicy_nameAndArn
=== CONT  TestAccFirewallPolicy_arn
=== CONT  TestAccFirewallPolicy_name
=== CONT  TestAccFirewallPolicy_nameAndArn
--- PASS: TestAccFirewallPolicy_arn (134.36s)
--- PASS: TestAccFirewallPolicy_name (135.50s)
--- PASS: TestAccFirewallPolicy_nameAndArn (147.97s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/networkfirewall    151.284s

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=TestAccNetworkFirewallFirewallPolicyDataSource_' PKG=networkfirewall ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/networkfirewall/... -v -count 1 -parallel 2  -run=TestAccNetworkFirewallFirewallPolicyDataSource_ -timeout 180m
=== RUN   TestAccNetworkFirewallFirewallPolicyDataSource_arn
=== PAUSE TestAccNetworkFirewallFirewallPolicyDataSource_arn
=== RUN   TestAccNetworkFirewallFirewallPolicyDataSource_name
=== PAUSE TestAccNetworkFirewallFirewallPolicyDataSource_name
=== RUN   TestAccNetworkFirewallFirewallPolicyDataSource_nameAndARN
=== PAUSE TestAccNetworkFirewallFirewallPolicyDataSource_nameAndARN
=== CONT  TestAccNetworkFirewallFirewallPolicyDataSource_arn
=== CONT  TestAccNetworkFirewallFirewallPolicyDataSource_nameAndARN
--- PASS: TestAccNetworkFirewallFirewallPolicyDataSource_nameAndARN (153.09s)
=== CONT  TestAccNetworkFirewallFirewallPolicyDataSource_name
--- PASS: TestAccNetworkFirewallFirewallPolicyDataSource_arn (153.15s)
--- PASS: TestAccNetworkFirewallFirewallPolicyDataSource_name (142.01s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/networkfirewall	299.418s

@ewbankkit
Copy link
Contributor

@ddericco Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 5539af2 into hashicorp:main Jul 8, 2022
@github-actions github-actions bot added this to the v4.23.0 milestone Jul 8, 2022
@ddericco ddericco deleted the f-data-networkfirewall_firewall_policy branch July 14, 2022 11:36
@github-actions
Copy link

This functionality has been released in v4.23.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 Aug 22, 2022
@justinretzolk justinretzolk added the partner Contribution from a partner. label May 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. new-data-source Introduces a new data source. partner Contribution from a partner. provider Pertains to the provider itself, rather than any interaction with AWS. service/networkfirewall Issues and PRs that pertain to the networkfirewall service. size/XL Managed by automation to categorize the size of a PR. 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.

4 participants