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

PoolArn attribute support in Data Source: aws_ec2_coip_pool #17046

Merged
merged 13 commits into from
Aug 3, 2021

Conversation

sumitmenaria
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 #16426

Release note for CHANGELOG:

DataSource/aws_ec2_coip_pool pool_arn attribute support

Output from acceptance testing:

$ make testacc TEST=./aws TESTARGS='-run=TestAccDataSourceAwsEc2CoipPool_Id'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsEc2CoipPool_Id -timeout 120m
=== RUN   TestAccDataSourceAwsEc2CoipPool_Id
=== PAUSE TestAccDataSourceAwsEc2CoipPool_Id
=== CONT  TestAccDataSourceAwsEc2CoipPool_Id
--- PASS: TestAccDataSourceAwsEc2CoipPool_Id (34.21s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	34.272s

...

Added the attribute pool_arn in Data Source: aws_ec2_coip_pool to resolve hashicorp#16426
Added attribute pool_arn in datasource ec2_coip
updated test to check pool_arn in data source aws_ec2_coip_pool_test.go
acceptancetest for datasource/aws_ec2_coip_pool
data source aws_ec2_coip_pool documentation updated with pool_arn attribute
attribute reference updated with pool_arn
@sumitmenaria sumitmenaria requested a review from a team as a code owner January 11, 2021 07:17
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. service/ec2 Issues and PRs that pertain to the ec2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jan 11, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 11, 2021
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 @sumitmenaria 👋

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 CONTRIBUTING 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! 😃

testAccMatchResourceAttrRegionalARN for awsproviderlint to test arn
@ewbankkit
Copy link
Contributor

@sumitmenaria Thanks for the contribution 👏. Could you please rename the new attribute to plan arn?
Although we usually prefer that the attribute name matches the property name in the underlying AWS API, for the property that contains the resource's ARN we always try and stick with arn - Guidelines here.
Other than that (and the comment above) this looks great.

@ewbankkit ewbankkit added waiting-response Maintainers are waiting on response from community or contributor. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 11, 2021
data_source_ec2_coip_pool.go
pool_arn -> arn
pool_arn : removed from optional
optional removed from pool_arn attribute and name changed to arn
data_source_ec2_coip_pool_test.go ARN test function update with attribute name arn instead of pool_arn
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 TEST=./aws/ TESTARGS='-run=TestAccDataSourceAwsEc2CoipPool_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsEc2CoipPool_ -timeout 120m
=== RUN   TestAccDataSourceAwsEc2CoipPool_Filter
=== PAUSE TestAccDataSourceAwsEc2CoipPool_Filter
=== RUN   TestAccDataSourceAwsEc2CoipPool_Id
=== PAUSE TestAccDataSourceAwsEc2CoipPool_Id
=== CONT  TestAccDataSourceAwsEc2CoipPool_Filter
=== CONT  TestAccDataSourceAwsEc2CoipPool_Id
=== CONT  TestAccDataSourceAwsEc2CoipPool_Filter
    data_source_aws_outposts_outposts_test.go:66: skipping since no Outposts found
--- SKIP: TestAccDataSourceAwsEc2CoipPool_Filter (1.90s)
=== CONT  TestAccDataSourceAwsEc2CoipPool_Id
    data_source_aws_outposts_outposts_test.go:66: skipping since no Outposts found
--- SKIP: TestAccDataSourceAwsEc2CoipPool_Id (1.99s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	2.067s

@ewbankkit ewbankkit removed the waiting-response Maintainers are waiting on response from community or contributor. label Jan 12, 2021
@sumitmenaria
Copy link
Contributor Author

@ewbankkit Pardom me for my ignorance, is there any tentative timeline when this request is going to be merged?

Base automatically changed from master to main January 23, 2021 01:00
@FireballDWF
Copy link

@ewbankkit What is the next step to move this forward?

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=TestAccDataSourceAwsEc2CoipPool_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsEc2CoipPool_ -timeout 120m
=== RUN   TestAccDataSourceAwsEc2CoipPool_Filter
=== PAUSE TestAccDataSourceAwsEc2CoipPool_Filter
=== RUN   TestAccDataSourceAwsEc2CoipPool_Id
=== PAUSE TestAccDataSourceAwsEc2CoipPool_Id
=== CONT  TestAccDataSourceAwsEc2CoipPool_Filter
=== CONT  TestAccDataSourceAwsEc2CoipPool_Id
=== CONT  TestAccDataSourceAwsEc2CoipPool_Filter
    data_source_aws_outposts_outposts_test.go:66: skipping since no Outposts found
--- SKIP: TestAccDataSourceAwsEc2CoipPool_Filter (1.43s)
=== CONT  TestAccDataSourceAwsEc2CoipPool_Id
    data_source_aws_outposts_outposts_test.go:66: skipping since no Outposts found
--- SKIP: TestAccDataSourceAwsEc2CoipPool_Id (1.44s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	4.156s

@ewbankkit
Copy link
Contributor

@sumitmenaria Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit a3c59d2 into hashicorp:main Aug 3, 2021
@github-actions github-actions bot added this to the v3.53.0 milestone Aug 3, 2021
@github-actions
Copy link

github-actions bot commented Aug 5, 2021

This functionality has been released in v3.53.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 Sep 5, 2021

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 Sep 5, 2021
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. service/ec2 Issues and PRs that pertain to the ec2 service. size/XS 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.

PoolArn attribute support in Data Source: aws_ec2_coip_pool
3 participants