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

👽 add support for aws_autoscaling_group filters #21966

Merged
merged 5 commits into from
Dec 1, 2021

Conversation

danquack
Copy link
Contributor

@danquack danquack commented Nov 30, 2021

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

Some people have asked me on the 👽 . These emojis are defined by gitmoji.dev, which relates to Update code due to external API changes.

Relates OR Closes #3534

Output from acceptance testing:

~ make testacc TESTARGS="-run=TestAccAutoScalingGroupsDataSource_basic" PKG_NAME="./internal/service/autoscaling" ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ././internal/service/autoscaling/... -v -count 1 -parallel 3 -run=TestAccAutoScalingGroupsDataSource_basic -timeout 180m
=== RUN   TestAccAutoScalingGroupsDataSource_basic
=== PAUSE TestAccAutoScalingGroupsDataSource_basic
=== CONT  TestAccAutoScalingGroupsDataSource_basic
--- PASS: TestAccAutoScalingGroupsDataSource_basic (75.92s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/autoscaling        79.298s

@github-actions github-actions bot added size/L 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/autoscaling Issues and PRs that pertain to the autoscaling service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. needs-triage Waiting for first response or review from a maintainer. labels Nov 30, 2021
@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 github-actions bot removed documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. labels Nov 30, 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 @danquack 👋

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

@@ -24,11 +24,20 @@ func TestAccAutoScalingGroupsDataSource_basic(t *testing.T) {
Config: testAccCheckGroupsConfig(sdkacctest.RandInt(), sdkacctest.RandInt(), sdkacctest.RandInt()),
},
{
Config: testAccCheckGroupsWithDataSourceConfig(sdkacctest.RandInt(), sdkacctest.RandInt(), sdkacctest.RandInt()),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The resources were not being created with this function, but rather using the testAccCheckGroupsConfig above resources. Therefore, I removed some of this cruft.

@drewmullen drewmullen self-requested a review November 30, 2021 17:52
Copy link
Collaborator

@drewmullen drewmullen left a comment

Choose a reason for hiding this comment

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

great work! thanks for your contribution. 1 🎨 stylistic change requested

internal/service/autoscaling/filters.go Outdated Show resolved Hide resolved
@danquack danquack requested a review from drewmullen November 30, 2021 18:32
Copy link
Collaborator

@drewmullen drewmullen left a comment

Choose a reason for hiding this comment

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

lgtm! 🚀

@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Dec 1, 2021
@github-actions github-actions bot added size/XL Managed by automation to categorize the size of a PR. and removed size/L Managed by automation to categorize the size of a PR. labels Dec 1, 2021
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=TestAccAutoScalingGroupsDataSource_basic" PKG_NAME="./internal/service/autoscaling"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ././internal/service/autoscaling/... -v -count 1 -parallel 20 -run=TestAccAutoScalingGroupsDataSource_basic -timeout 180m
=== RUN   TestAccAutoScalingGroupsDataSource_basic
=== PAUSE TestAccAutoScalingGroupsDataSource_basic
=== CONT  TestAccAutoScalingGroupsDataSource_basic
--- PASS: TestAccAutoScalingGroupsDataSource_basic (47.78s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/autoscaling	51.526s

@ewbankkit
Copy link
Contributor

@danquack Thanks for the contribution.
In general the changes look great. I went ahead and simplified the acceptance testing configuration(s) even more, consolidating into a single generating function (the fact that the data sources weren't referencing or depending on any of the autoscaling group resources may lead to intermittent tests failures).

@ewbankkit ewbankkit merged commit dbe3e7f into hashicorp:main Dec 1, 2021
@github-actions github-actions bot added this to the v3.68.0 milestone Dec 1, 2021
@danquack danquack deleted the auto-scaling-tags branch December 1, 2021 15:32
@github-actions
Copy link

github-actions bot commented Dec 2, 2021

This functionality has been released in v3.68.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 Jun 4, 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 Jun 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/autoscaling Issues and PRs that pertain to the autoscaling 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.

Improve filters for data source aws_autoscaling_group
3 participants