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

Bugfix: Use DescribeManagedPrefixListsPagesWithContext to get prefix list #26683

Merged

Conversation

aleksanderaleksic
Copy link
Contributor

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

Output from acceptance testing:

$ make testacc TESTS=TestAccVPCManagedPrefixListDataSource PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccVPCManagedPrefixListDataSource'  -timeout 180m
=== RUN   TestAccVPCManagedPrefixListDataSource_basic
=== PAUSE TestAccVPCManagedPrefixListDataSource_basic
=== RUN   TestAccVPCManagedPrefixListDataSource_filter
=== PAUSE TestAccVPCManagedPrefixListDataSource_filter
=== RUN   TestAccVPCManagedPrefixListDataSource_matchesTooMany
=== PAUSE TestAccVPCManagedPrefixListDataSource_matchesTooMany
=== CONT  TestAccVPCManagedPrefixListDataSource_basic
=== CONT  TestAccVPCManagedPrefixListDataSource_matchesTooMany
=== CONT  TestAccVPCManagedPrefixListDataSource_filter
--- PASS: TestAccVPCManagedPrefixListDataSource_matchesTooMany (6.14s)
--- PASS: TestAccVPCManagedPrefixListDataSource_filter (22.10s)
--- PASS: TestAccVPCManagedPrefixListDataSource_basic (23.63s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/ec2        25.352s
...

Replaces DescribeManagedPrefixListsWithContext
@github-actions github-actions bot added size/XS Managed by automation to categorize the size of a PR. service/vpc Issues and PRs that pertain to the vpc service. needs-triage Waiting for first response or review from a maintainer. labels Sep 7, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @aleksanderaleksic 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Sep 7, 2022
… handler signatures (hashicorp#15090).

Acceptance test output:

% make testacc TESTARGS='-run=TestAccVPCManagedPrefixListEntry_' PKG=ec2 ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 2  -run=TestAccVPCManagedPrefixListEntry_ -timeout 180m
=== RUN   TestAccVPCManagedPrefixListEntry_ipv4
=== PAUSE TestAccVPCManagedPrefixListEntry_ipv4
=== RUN   TestAccVPCManagedPrefixListEntry_ipv4Multiple
=== PAUSE TestAccVPCManagedPrefixListEntry_ipv4Multiple
=== RUN   TestAccVPCManagedPrefixListEntry_ipv6
=== PAUSE TestAccVPCManagedPrefixListEntry_ipv6
=== RUN   TestAccVPCManagedPrefixListEntry_expectInvalidTypeError
=== PAUSE TestAccVPCManagedPrefixListEntry_expectInvalidTypeError
=== RUN   TestAccVPCManagedPrefixListEntry_expectInvalidCIDR
=== PAUSE TestAccVPCManagedPrefixListEntry_expectInvalidCIDR
=== RUN   TestAccVPCManagedPrefixListEntry_description
=== PAUSE TestAccVPCManagedPrefixListEntry_description
=== RUN   TestAccVPCManagedPrefixListEntry_disappears
=== PAUSE TestAccVPCManagedPrefixListEntry_disappears
=== CONT  TestAccVPCManagedPrefixListEntry_ipv4
=== CONT  TestAccVPCManagedPrefixListEntry_expectInvalidCIDR
--- PASS: TestAccVPCManagedPrefixListEntry_expectInvalidCIDR (2.75s)
=== CONT  TestAccVPCManagedPrefixListEntry_disappears
--- PASS: TestAccVPCManagedPrefixListEntry_disappears (24.30s)
=== CONT  TestAccVPCManagedPrefixListEntry_description
--- PASS: TestAccVPCManagedPrefixListEntry_ipv4 (28.17s)
=== CONT  TestAccVPCManagedPrefixListEntry_ipv6
--- PASS: TestAccVPCManagedPrefixListEntry_description (28.06s)
=== CONT  TestAccVPCManagedPrefixListEntry_expectInvalidTypeError
--- PASS: TestAccVPCManagedPrefixListEntry_ipv6 (27.37s)
=== CONT  TestAccVPCManagedPrefixListEntry_ipv4Multiple
--- PASS: TestAccVPCManagedPrefixListEntry_expectInvalidTypeError (1.45s)
--- PASS: TestAccVPCManagedPrefixListEntry_ipv4Multiple (31.93s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	92.312s
…urceID' and 'ManagedPrefixListEntryParseID' -> 'ManagedPrefixListEntryParseResourceID'.
…er signatures (hashicorp#15090).

Acceptance test output:

% make testacc TESTARGS='-run=TestAccVPCManagedPrefixList_' PKG=ec2 ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 2  -run=TestAccVPCManagedPrefixList_ -timeout 180m
=== RUN   TestAccVPCManagedPrefixList_basic
=== PAUSE TestAccVPCManagedPrefixList_basic
=== RUN   TestAccVPCManagedPrefixList_disappears
=== PAUSE TestAccVPCManagedPrefixList_disappears
=== RUN   TestAccVPCManagedPrefixList_AddressFamily_ipv6
=== PAUSE TestAccVPCManagedPrefixList_AddressFamily_ipv6
=== RUN   TestAccVPCManagedPrefixList_Entry_cidr
=== PAUSE TestAccVPCManagedPrefixList_Entry_cidr
=== RUN   TestAccVPCManagedPrefixList_Entry_description
=== PAUSE TestAccVPCManagedPrefixList_Entry_description
=== RUN   TestAccVPCManagedPrefixList_name
=== PAUSE TestAccVPCManagedPrefixList_name
=== RUN   TestAccVPCManagedPrefixList_tags
=== PAUSE TestAccVPCManagedPrefixList_tags
=== CONT  TestAccVPCManagedPrefixList_basic
=== CONT  TestAccVPCManagedPrefixList_Entry_description
--- PASS: TestAccVPCManagedPrefixList_Entry_description (38.14s)
=== CONT  TestAccVPCManagedPrefixList_AddressFamily_ipv6
--- PASS: TestAccVPCManagedPrefixList_basic (44.13s)
=== CONT  TestAccVPCManagedPrefixList_Entry_cidr
--- PASS: TestAccVPCManagedPrefixList_AddressFamily_ipv6 (25.14s)
=== CONT  TestAccVPCManagedPrefixList_tags
--- PASS: TestAccVPCManagedPrefixList_Entry_cidr (39.83s)
=== CONT  TestAccVPCManagedPrefixList_disappears
=== CONT  TestAccVPCManagedPrefixList_name
--- PASS: TestAccVPCManagedPrefixList_disappears (20.94s)
--- PASS: TestAccVPCManagedPrefixList_tags (48.23s)
--- PASS: TestAccVPCManagedPrefixList_name (37.63s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	146.639s
Acceptance test output:

% make testacc TESTARGS='-run=TestAccVPCManagedPrefixListDataSource_' PKG=ec2 ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 2  -run=TestAccVPCManagedPrefixListDataSource_ -timeout 180m
=== RUN   TestAccVPCManagedPrefixListDataSource_basic
=== PAUSE TestAccVPCManagedPrefixListDataSource_basic
=== RUN   TestAccVPCManagedPrefixListDataSource_filter
=== PAUSE TestAccVPCManagedPrefixListDataSource_filter
=== RUN   TestAccVPCManagedPrefixListDataSource_matchesTooMany
=== PAUSE TestAccVPCManagedPrefixListDataSource_matchesTooMany
=== CONT  TestAccVPCManagedPrefixListDataSource_basic
=== CONT  TestAccVPCManagedPrefixListDataSource_matchesTooMany
--- PASS: TestAccVPCManagedPrefixListDataSource_matchesTooMany (3.48s)
=== CONT  TestAccVPCManagedPrefixListDataSource_filter
--- PASS: TestAccVPCManagedPrefixListDataSource_basic (16.70s)
--- PASS: TestAccVPCManagedPrefixListDataSource_filter (14.58s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	22.291s
@github-actions github-actions bot added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/XL 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 Sep 7, 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 TESTARGS='-run=TestAccVPCManagedPrefixListDataSource_' PKG=ec2 ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 2  -run=TestAccVPCManagedPrefixListDataSource_ -timeout 180m
=== RUN   TestAccVPCManagedPrefixListDataSource_basic
=== PAUSE TestAccVPCManagedPrefixListDataSource_basic
=== RUN   TestAccVPCManagedPrefixListDataSource_filter
=== PAUSE TestAccVPCManagedPrefixListDataSource_filter
=== RUN   TestAccVPCManagedPrefixListDataSource_matchesTooMany
=== PAUSE TestAccVPCManagedPrefixListDataSource_matchesTooMany
=== CONT  TestAccVPCManagedPrefixListDataSource_basic
=== CONT  TestAccVPCManagedPrefixListDataSource_matchesTooMany
--- PASS: TestAccVPCManagedPrefixListDataSource_matchesTooMany (3.48s)
=== CONT  TestAccVPCManagedPrefixListDataSource_filter
--- PASS: TestAccVPCManagedPrefixListDataSource_basic (16.70s)
--- PASS: TestAccVPCManagedPrefixListDataSource_filter (14.58s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	22.291s

@ewbankkit
Copy link
Contributor

@aleksanderaleksic Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 1fbd67e into hashicorp:main Sep 7, 2022
@github-actions github-actions bot added this to the v4.30.0 milestone Sep 7, 2022
@aleksanderaleksic aleksanderaleksic deleted the fix-issue-getting-prefix-list branch September 8, 2022 08:52
@github-actions
Copy link

github-actions bot commented Sep 9, 2022

This functionality has been released in v4.30.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

github-actions bot commented Oct 9, 2022

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 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/vpc Issues and PRs that pertain to the vpc 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
2 participants