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_vpc_dhcp_options_association: Support default DHCP Options ID #22722

Merged
merged 2 commits into from
Jan 22, 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 #22716.

Prior to the fix:

% make testacc TESTARGS='-run=TestAccEC2VPCDHCPOptionsAssociation_default' PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20  -run=TestAccEC2VPCDHCPOptionsAssociation_default -timeout 180m
=== RUN   TestAccEC2VPCDHCPOptionsAssociation_default
=== PAUSE TestAccEC2VPCDHCPOptionsAssociation_default
=== CONT  TestAccEC2VPCDHCPOptionsAssociation_default
    vpc_dhcp_options_association_test.go:113: Step 1/2 error: Error running apply: exit status 1
        
        Error: unexpected format for ID (default-vpc-0c3d3a2ecaff91a69), expected DHCPOptionsID-VPCID
        
          with aws_vpc_dhcp_options_association.test,
          on terraform_plugin_test.tf line 15, in resource "aws_vpc_dhcp_options_association" "test":
          15: resource "aws_vpc_dhcp_options_association" "test" {
        
    testing_new.go:70: Error running post-test destroy, there may be dangling resources: exit status 1
        
        Error: unexpected format for ID (default-vpc-0c3d3a2ecaff91a69), expected DHCPOptionsID-VPCID
        
--- FAIL: TestAccEC2VPCDHCPOptionsAssociation_default (13.84s)
FAIL
FAIL    github.com/hashicorp/terraform-provider-aws/internal/service/ec2        17.503s
FAIL
make: *** [testacc] Error 1

Output from acceptance testing:

% make testacc TESTARGS='-run=TestAccEC2VPCDHCPOptionsAssociation_' PKG=ec2 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20  -run=TestAccEC2VPCDHCPOptionsAssociation_ -timeout 180m
=== RUN   TestAccEC2VPCDHCPOptionsAssociation_basic
=== PAUSE TestAccEC2VPCDHCPOptionsAssociation_basic
=== RUN   TestAccEC2VPCDHCPOptionsAssociation_Disappears_vpc
=== PAUSE TestAccEC2VPCDHCPOptionsAssociation_Disappears_vpc
=== RUN   TestAccEC2VPCDHCPOptionsAssociation_Disappears_dhcp
=== PAUSE TestAccEC2VPCDHCPOptionsAssociation_Disappears_dhcp
=== RUN   TestAccEC2VPCDHCPOptionsAssociation_disappears
=== PAUSE TestAccEC2VPCDHCPOptionsAssociation_disappears
=== RUN   TestAccEC2VPCDHCPOptionsAssociation_default
=== PAUSE TestAccEC2VPCDHCPOptionsAssociation_default
=== CONT  TestAccEC2VPCDHCPOptionsAssociation_basic
=== CONT  TestAccEC2VPCDHCPOptionsAssociation_disappears
=== CONT  TestAccEC2VPCDHCPOptionsAssociation_default
=== CONT  TestAccEC2VPCDHCPOptionsAssociation_Disappears_dhcp
=== CONT  TestAccEC2VPCDHCPOptionsAssociation_Disappears_vpc
--- PASS: TestAccEC2VPCDHCPOptionsAssociation_Disappears_vpc (21.84s)
--- PASS: TestAccEC2VPCDHCPOptionsAssociation_disappears (25.71s)
--- PASS: TestAccEC2VPCDHCPOptionsAssociation_Disappears_dhcp (26.49s)
--- PASS: TestAccEC2VPCDHCPOptionsAssociation_default (28.16s)
--- PASS: TestAccEC2VPCDHCPOptionsAssociation_basic (28.99s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/ec2        33.742s

@github-actions github-actions bot added size/S Managed by automation to categorize the size of a PR. 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 21, 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 Jan 21, 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 Jan 21, 2022
@anGie44 anGie44 self-assigned this Jan 21, 2022
Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

Hmm i wonder if we should try to have more unit tests for these parse "id" type methods. we have them in some places, though doesn't necessarily guarantee we'll always catch these unique ones ahead of time

@ewbankkit ewbankkit merged commit ec4f89c into main Jan 22, 2022
@ewbankkit ewbankkit deleted the b-aws_vpc_dhcp_options_association-default branch January 22, 2022 12:30
@github-actions github-actions bot added this to the v3.74.0 milestone Jan 22, 2022
github-actions bot pushed a commit that referenced this pull request Jan 22, 2022
@github-actions
Copy link

This functionality has been released in v3.74.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 May 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/ec2 Issues and PRs that pertain to the ec2 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.

Import of aws_vpc_dhcp_options_association fails in v3.73.0
2 participants