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_dx_private_virtual_interface: Error running parallel acceptance tests #6244

Closed
ewbankkit opened this issue Oct 23, 2018 · 4 comments · Fixed by #6342
Closed

r/aws_dx_private_virtual_interface: Error running parallel acceptance tests #6244

ewbankkit opened this issue Oct 23, 2018 · 4 comments · Fixed by #6342
Labels
service/directconnect Issues and PRs that pertain to the directconnect service. technical-debt Addresses areas of the codebase that need refactoring or redesign. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Milestone

Comments

@ewbankkit
Copy link
Contributor

Discovered while testing #6141:

$ DX_CONNECTION_ID=dxcon-xxxxxxxx AWS_DEFAULT_REGION=us-east-1 make testacc TESTARGS='-run=TestAccAwsDxPrivateVirtualInterface_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./... -v -parallel 20 -run=TestAccAwsDxPrivateVirtualInterface_ -timeout 120m
?   	github.com/terraform-providers/terraform-provider-aws	[no test files]
=== RUN   TestAccAwsDxPrivateVirtualInterface_basic
=== PAUSE TestAccAwsDxPrivateVirtualInterface_basic
=== RUN   TestAccAwsDxPrivateVirtualInterface_dxGateway
=== PAUSE TestAccAwsDxPrivateVirtualInterface_dxGateway
=== RUN   TestAccAwsDxPrivateVirtualInterface_mtuUpdate
--- PASS: TestAccAwsDxPrivateVirtualInterface_mtuUpdate (1053.03s)
=== CONT  TestAccAwsDxPrivateVirtualInterface_basic
=== CONT  TestAccAwsDxPrivateVirtualInterface_dxGateway
--- FAIL: TestAccAwsDxPrivateVirtualInterface_dxGateway (29.78s)
    testing.go:538: Step 0 error: Error applying: 1 error occurred:
        	* aws_dx_private_virtual_interface.foo: 1 error occurred:
        	* aws_dx_private_virtual_interface.foo: Error creating Direct Connect private virtual interface: DirectConnectClientException: Vlan 4094 is already in use
        	status code: 400, request id: 86051c8b-d6d5-11e8-b3f8-99e875bb6fe2
        
        
        
        
--- PASS: TestAccAwsDxPrivateVirtualInterface_basic (672.23s)
FAIL
FAIL	github.com/terraform-providers/terraform-provider-aws/aws	1726.117s
make: *** [testacc] Error 1
@ewbankkit
Copy link
Contributor Author

Need to randomize the VLAN which is hard-coded to 4094 today.

@ewbankkit
Copy link
Contributor Author

This will also need to be applied to the other DX VIF resource tests:

  • aws_dx_hosted_private_virtual_interface
  • aws_dx_hosted_public_virtual_interface
  • aws_dx_public_virtual_interface

@ewbankkit
Copy link
Contributor Author

I suggest waiting for #6141 and #6142 to land before fixing this as additional relevant test cases were added in those two PRs.

@bflad bflad added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/directconnect Issues and PRs that pertain to the directconnect service. technical-debt Addresses areas of the codebase that need refactoring or redesign. labels Oct 30, 2018
@bflad bflad added this to the v1.43.0 milestone Nov 5, 2018
@ghost
Copy link

ghost commented Apr 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/directconnect Issues and PRs that pertain to the directconnect service. technical-debt Addresses areas of the codebase that need refactoring or redesign. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants