-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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/spot_instance_request: add import support + refactor tests #12787
r/spot_instance_request: add import support + refactor tests #12787
Conversation
Verified acceptance tests: $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSSpotInstanceRequest_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSSpotInstanceRequest_ -timeout 120m
=== RUN TestAccAWSSpotInstanceRequest_basic
=== PAUSE TestAccAWSSpotInstanceRequest_basic
=== RUN TestAccAWSSpotInstanceRequest_withLaunchGroup
=== PAUSE TestAccAWSSpotInstanceRequest_withLaunchGroup
=== RUN TestAccAWSSpotInstanceRequest_withBlockDuration
=== PAUSE TestAccAWSSpotInstanceRequest_withBlockDuration
=== RUN TestAccAWSSpotInstanceRequest_vpc
=== PAUSE TestAccAWSSpotInstanceRequest_vpc
=== RUN TestAccAWSSpotInstanceRequest_validUntil
=== PAUSE TestAccAWSSpotInstanceRequest_validUntil
=== RUN TestAccAWSSpotInstanceRequest_withoutSpotPrice
=== PAUSE TestAccAWSSpotInstanceRequest_withoutSpotPrice
=== RUN TestAccAWSSpotInstanceRequest_SubnetAndSGAndPublicIpAddress
=== PAUSE TestAccAWSSpotInstanceRequest_SubnetAndSGAndPublicIpAddress
=== RUN TestAccAWSSpotInstanceRequest_NetworkInterfaceAttributes
=== PAUSE TestAccAWSSpotInstanceRequest_NetworkInterfaceAttributes
=== RUN TestAccAWSSpotInstanceRequest_getPasswordData
=== PAUSE TestAccAWSSpotInstanceRequest_getPasswordData
=== RUN TestAccAWSSpotInstanceRequest_disappears
=== PAUSE TestAccAWSSpotInstanceRequest_disappears
=== CONT TestAccAWSSpotInstanceRequest_basic
=== CONT TestAccAWSSpotInstanceRequest_SubnetAndSGAndPublicIpAddress
=== CONT TestAccAWSSpotInstanceRequest_disappears
=== CONT TestAccAWSSpotInstanceRequest_getPasswordData
=== CONT TestAccAWSSpotInstanceRequest_NetworkInterfaceAttributes
=== CONT TestAccAWSSpotInstanceRequest_withoutSpotPrice
=== CONT TestAccAWSSpotInstanceRequest_withBlockDuration
=== CONT TestAccAWSSpotInstanceRequest_withLaunchGroup
=== CONT TestAccAWSSpotInstanceRequest_validUntil
=== CONT TestAccAWSSpotInstanceRequest_vpc
--- PASS: TestAccAWSSpotInstanceRequest_disappears (35.42s)
--- FAIL: TestAccAWSSpotInstanceRequest_vpc (78.65s)
testing.go:669: Step 0 error: Check failed: Check 4/6 error: Expected exactly 1 network interface, found 0
--- PASS: TestAccAWSSpotInstanceRequest_basic (110.43s)
--- PASS: TestAccAWSSpotInstanceRequest_validUntil (110.43s)
--- PASS: TestAccAWSSpotInstanceRequest_withoutSpotPrice (110.50s)
--- PASS: TestAccAWSSpotInstanceRequest_NetworkInterfaceAttributes (120.55s)
--- PASS: TestAccAWSSpotInstanceRequest_withBlockDuration (120.70s)
--- PASS: TestAccAWSSpotInstanceRequest_SubnetAndSGAndPublicIpAddress (131.03s)
--- PASS: TestAccAWSSpotInstanceRequest_withLaunchGroup (141.50s)
--- PASS: TestAccAWSSpotInstanceRequest_getPasswordData (241.43s)
FAIL
FAIL github.com/terraform-providers/terraform-provider-aws/aws 241.463s
FAIL
GNUmakefile:26: recipe for target 'testacc' failed
make: *** [testacc] Error 1 To fix the |
631d03d
to
7faab9b
Compare
fixed vpc test + rebased |
8f9ac59
to
a37777c
Compare
spot_type
+ refactor testsspot_type
+ refactor tests
spot_type
+ refactor testsspot_type
+ refactor tests
spot_type
+ refactor testsspot_type
+ refactor tests
f0b9cb5
to
bf75f7d
Compare
spot_type
+ refactor tests
changed this up a bit to support import |
tests are now passing!
|
Hey @DrFaust92 👋 We would love to pick this up on Thursday as part of some gardening work. If you could rebase this and add a changelog file that would be awesome. Thank you! |
use enums refactor tests
revert ipv6 changes
ignore import for `password_data`
98fd1af
to
b52388e
Compare
rebased
|
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.
Looks good to me, thank you, @DrFaust92 🚀
Output from acceptance testing in AWS Commercial:
--- PASS: TestAccAWSEIPAssociation_spotInstance (324.66s)
--- PASS: TestAccAWSSpotInstanceRequest_basic (343.84s)
--- PASS: TestAccAWSSpotInstanceRequest_disappears (313.80s)
--- PASS: TestAccAWSSpotInstanceRequest_getPasswordData (212.62s)
--- PASS: TestAccAWSSpotInstanceRequest_InterruptHibernate (327.43s)
--- PASS: TestAccAWSSpotInstanceRequest_InterruptStop (88.75s)
--- PASS: TestAccAWSSpotInstanceRequest_NetworkInterfaceAttributes (341.21s)
--- PASS: TestAccAWSSpotInstanceRequest_SubnetAndSGAndPublicIpAddress (351.06s)
--- PASS: TestAccAWSSpotInstanceRequest_tags (152.64s)
--- PASS: TestAccAWSSpotInstanceRequest_validUntil (339.82s)
--- PASS: TestAccAWSSpotInstanceRequest_vpc (341.75s)
--- PASS: TestAccAWSSpotInstanceRequest_withBlockDuration (333.88s)
--- PASS: TestAccAWSSpotInstanceRequest_withLaunchGroup (308.06s)
--- PASS: TestAccAWSSpotInstanceRequest_withoutSpotPrice (79.75s)
Output from acceptance testing in AWS GovCloud (US):
--- PASS: TestAccAWSEIPAssociation_spotInstance (139.29s)
--- PASS: TestAccAWSSpotInstanceRequest_basic (127.90s)
--- PASS: TestAccAWSSpotInstanceRequest_disappears (309.16s)
--- PASS: TestAccAWSSpotInstanceRequest_getPasswordData (203.89s)
--- PASS: TestAccAWSSpotInstanceRequest_InterruptHibernate (125.23s)
--- PASS: TestAccAWSSpotInstanceRequest_InterruptStop (105.36s)
--- PASS: TestAccAWSSpotInstanceRequest_NetworkInterfaceAttributes (138.38s)
--- PASS: TestAccAWSSpotInstanceRequest_SubnetAndSGAndPublicIpAddress (140.94s)
--- PASS: TestAccAWSSpotInstanceRequest_tags (186.82s)
--- PASS: TestAccAWSSpotInstanceRequest_validUntil (317.22s)
--- PASS: TestAccAWSSpotInstanceRequest_vpc (120.42s)
--- PASS: TestAccAWSSpotInstanceRequest_withBlockDuration (326.41s)
--- PASS: TestAccAWSSpotInstanceRequest_withLaunchGroup (315.90s)
--- PASS: TestAccAWSSpotInstanceRequest_withoutSpotPrice (100.39s)
This has been released in version 3.29.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 for triage. Thanks! |
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! |
Community Note
Relates #13826
Release note for CHANGELOG:
Output from acceptance testing: