-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/aws: Add some tests for the Import for aws_eip #9009
Conversation
stack72
commented
Sep 23, 2016
ImportState: true, | ||
ImportStateVerify: true, | ||
ImportStateVerifyIgnore: []string{ | ||
"vpc", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious why we're ignoring the import of vpc
, I believe it's setting has an impact to how the resource behaves.
@catsby for the purposes of import, the ignoring of this is the actual code that does the importing:
|
which is why I was questioning why we omit it in the import; it can possibly affect how the resource behaves (by way of the I tried this out, and the That said, I applied the below config and then removed and imported the
import works fine, but a follow up plan shows a diff:
Thoughts? (fwiw the above config works as expected in classic 👌) |
696a35d
to
90adc6d
Compare
90adc6d
to
2c60a50
Compare
|
2c60a50
to
933fd64
Compare
The Read func of the EIP has changed to set the `vpc` boolean value on the response object having an Address. This is required as an EIP that was specified, without a domain and then imported, would cause a perpetual plan. ``` % make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSEIP_' ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /terraform/vendor/) 2016/09/23 09:28:32 Generated command/internal_plugin_list.go TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSEIP_ -timeout 120m === RUN TestAccAWSEIP_importEc2Classic --- PASS: TestAccAWSEIP_importEc2Classic (116.16s) === RUN TestAccAWSEIP_importVpc --- PASS: TestAccAWSEIP_importVpc (61.89s) === RUN TestAccAWSEIP_basic --- PASS: TestAccAWSEIP_basic (18.86s) === RUN TestAccAWSEIP_instance --- PASS: TestAccAWSEIP_instance (185.95s) === RUN TestAccAWSEIP_network_interface --- PASS: TestAccAWSEIP_network_interface (63.20s) === RUN TestAccAWSEIP_twoEIPsOneNetworkInterface --- PASS: TestAccAWSEIP_twoEIPsOneNetworkInterface (65.64s) === RUN TestAccAWSEIP_associated_user_private_ip --- PASS: TestAccAWSEIP_associated_user_private_ip (201.34s) PASS ok github.com/hashicorp/terraform/builtin/providers/aws 713.072s ```
933fd64
to
5479e17
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |