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

r/aws_default_vpc_dhcp_options: Fix v4.20.0 regression with TypeList vs. TypeString #25562

Merged
merged 6 commits into from
Jun 24, 2022

Conversation

ewbankkit
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 #25561.

Prior to the fix
% make testacc TESTARGS='-run=TestAccVPCDefaultVPCDHCPOptions_serial/v4.20.0_regression' PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20  -run=TestAccVPCDefaultVPCDHCPOptions_serial/v4.20.0_regression -timeout 180m
=== RUN   TestAccVPCDefaultVPCDHCPOptions_serial
=== RUN   TestAccVPCDefaultVPCDHCPOptions_serial/v4.20.0_regression
    vpc_default_vpc_dhcp_options_test.go:87: Step 2/2 error: Error running pre-apply refresh: exit status 1
        
        Error: missing expected [
        
          with aws_default_vpc_dhcp_options.test,
          on terraform_plugin_test.tf line 2, in resource "aws_default_vpc_dhcp_options" "test":
           2: resource "aws_default_vpc_dhcp_options" "test" {
        
    testing_new.go:73: Error retrieving state, there may be dangling resources: exit status 1
        Failed to marshal state to json: missing expected [
--- FAIL: TestAccVPCDefaultVPCDHCPOptions_serial (45.27s)
    --- FAIL: TestAccVPCDefaultVPCDHCPOptions_serial/v4.20.0_regression (45.27s)
FAIL
FAIL	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	49.169s
FAIL
make: *** [testacc] Error 1
Now
% make testacc TESTARGS='-run=TestAccVPCDefaultVPCDHCPOptions_serial' PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20  -run=TestAccVPCDefaultVPCDHCPOptions_serial -timeout 180m
=== RUN   TestAccVPCDefaultVPCDHCPOptions_serial
=== RUN   TestAccVPCDefaultVPCDHCPOptions_serial/basic
=== RUN   TestAccVPCDefaultVPCDHCPOptions_serial/owner
=== RUN   TestAccVPCDefaultVPCDHCPOptions_serial/v4.20.0_regression
--- PASS: TestAccVPCDefaultVPCDHCPOptions_serial (83.04s)
    --- PASS: TestAccVPCDefaultVPCDHCPOptions_serial/basic (13.57s)
    --- PASS: TestAccVPCDefaultVPCDHCPOptions_serial/owner (13.09s)
    --- PASS: TestAccVPCDefaultVPCDHCPOptions_serial/v4.20.0_regression (56.38s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	87.122s

@github-actions github-actions bot added service/vpc Issues and PRs that pertain to the vpc service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/S Managed by automation to categorize the size of a PR. labels Jun 24, 2022
@github-actions github-actions bot added size/M Managed by automation to categorize the size of a PR. and removed size/S Managed by automation to categorize the size of a PR. labels Jun 24, 2022
@ewbankkit ewbankkit added bug Addresses a defect in current functionality. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. labels Jun 24, 2022
Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

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

Looks good! 🎉

% make testacc TESTARGS='-run=TestAccVPCDefaultVPCDHCPOptions_serial/v4.20.0_regression' PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20  -run=TestAccVPCDefaultVPCDHCPOptions_serial/v4.20.0_regression -timeout 180m
=== RUN   TestAccVPCDefaultVPCDHCPOptions_serial
=== RUN   TestAccVPCDefaultVPCDHCPOptions_serial/v4.20.0_regression
--- PASS: TestAccVPCDefaultVPCDHCPOptions_serial (49.04s)
    --- PASS: TestAccVPCDefaultVPCDHCPOptions_serial/v4.20.0_regression (49.04s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	50.394s

.changelog/25562.txt Show resolved Hide resolved
@ewbankkit ewbankkit merged commit afb9106 into main Jun 24, 2022
@ewbankkit ewbankkit deleted the b-aws_default_vpc_dhcp_options-v4.20.0-regression branch June 24, 2022 18:51
@github-actions github-actions bot added this to the v4.21.0 milestone Jun 24, 2022
github-actions bot pushed a commit that referenced this pull request Jun 24, 2022
@ewbankkit ewbankkit modified the milestones: v4.21.0, v4.20.1 Jun 24, 2022
@github-actions
Copy link

This functionality has been released in v4.20.1 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 25, 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. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. service/vpc Issues and PRs that pertain to the vpc service. size/M 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.

The latest (4.20.0) provider is breaking the aws_default_vpc_dhcp_options resource
2 participants