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: validate embed_host_domains correctly #25372

Merged
merged 5 commits into from
Jun 27, 2022

Conversation

mherzig
Copy link
Contributor

@mherzig mherzig commented Jun 15, 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

Closes #25205

Output from acceptance testing:

$ make testacc TESTS=TestAccAppStreamStack PKG=appstream 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/appstream/... -v -count 1 -parallel 20 -run='TestAccAppStreamStack'  -timeout 180m
=== RUN   TestAccAppStreamStack_basic
=== PAUSE TestAccAppStreamStack_basic
=== RUN   TestAccAppStreamStack_disappears
=== PAUSE TestAccAppStreamStack_disappears
=== RUN   TestAccAppStreamStack_complete
=== PAUSE TestAccAppStreamStack_complete
=== RUN   TestAccAppStreamStack_withTags
=== PAUSE TestAccAppStreamStack_withTags
=== CONT  TestAccAppStreamStack_basic
=== CONT  TestAccAppStreamStack_complete
=== CONT  TestAccAppStreamStack_disappears
=== CONT  TestAccAppStreamStack_withTags
--- PASS: TestAccAppStreamStack_disappears (6.92s)
--- PASS: TestAccAppStreamStack_basic (12.82s)
--- PASS: TestAccAppStreamStack_withTags (24.32s)
--- PASS: TestAccAppStreamStack_complete (25.81s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/appstream  27.388s

The embed_host_domains path was validated incorrectly, and any plan that used it crashed. This fixes it so that it validates the paths as a set, not a list.

@github-actions github-actions bot added size/XS Managed by automation to categorize the size of a PR. service/appstream Issues and PRs that pertain to the appstream 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 Jun 15, 2022
@mherzig mherzig marked this pull request as ready for review June 15, 2022 23:59
@justinretzolk justinretzolk added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Jun 16, 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 TESTS=TestAccAppStreamStack PKG=appstream ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/appstream/... -v -count 1 -parallel 3 -run='TestAccAppStreamStack'  -timeout 180m
=== RUN   TestAccAppStreamStack_basic
=== PAUSE TestAccAppStreamStack_basic
=== RUN   TestAccAppStreamStack_disappears
=== PAUSE TestAccAppStreamStack_disappears
=== RUN   TestAccAppStreamStack_complete
=== PAUSE TestAccAppStreamStack_complete
=== RUN   TestAccAppStreamStack_withTags
=== PAUSE TestAccAppStreamStack_withTags
=== CONT  TestAccAppStreamStack_basic
=== CONT  TestAccAppStreamStack_complete
=== CONT  TestAccAppStreamStack_disappears
--- PASS: TestAccAppStreamStack_disappears (15.08s)
=== CONT  TestAccAppStreamStack_withTags
--- PASS: TestAccAppStreamStack_basic (22.56s)
--- PASS: TestAccAppStreamStack_complete (38.67s)
--- PASS: TestAccAppStreamStack_withTags (35.28s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/appstream	54.601s

@ewbankkit
Copy link
Contributor

@mherzig Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 054afc0 into hashicorp:main Jun 27, 2022
@github-actions github-actions bot added this to the v4.21.0 milestone Jun 27, 2022
@github-actions
Copy link

github-actions bot commented Jul 1, 2022

This functionality has been released in v4.21.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 Jul 31, 2022
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. service/appstream Issues and PRs that pertain to the appstream 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.

AWS Appstream 2.0 crashes
3 participants