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

Add stopped as a valid state for volume attachment #1444

Merged
merged 2 commits into from
Dec 17, 2017

Conversation

bodgit
Copy link
Contributor

@bodgit bodgit commented Aug 17, 2017

Should fix #1311

@apparentlymart apparentlymart added the bug Addresses a defect in current functionality. label Aug 17, 2017
Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

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

Hi @bodgit
this looks reasonable, do you mind adding an acceptance test so we can be sure this bug is doesn't ever come back?

I assume we'll need to stop the instance as part of the test since we don't support stopped instances in Terraform at this point for various reasons.

Let me know if you need any help with writing the test or if you want me to do it - that's ok too.

@radeksimko radeksimko added the waiting-response Maintainers are waiting on response from community or contributor. label Aug 23, 2017
@radeksimko radeksimko added the size/XS Managed by automation to categorize the size of a PR. label Nov 15, 2017
@Ninir
Copy link
Contributor

Ninir commented Dec 8, 2017

Hi @bodgit

Do you think you would have time to finish this work and add the acceptance test asked by @radeksimko ?
Would be much appreciated! :)

@bodgit
Copy link
Contributor Author

bodgit commented Dec 11, 2017

I've added a test that passes:

$ make testacc TEST=./aws TESTARGS='-run=TestAccAWSVolumeAttachment_attachStopped'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -run=TestAccAWSVolumeAttachment_attachStopped -timeout 120m
=== RUN   TestAccAWSVolumeAttachment_attachStopped
--- PASS: TestAccAWSVolumeAttachment_attachStopped (199.85s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	199.880s

I also reverted my change and checked that the test also fails correctly.

@jen20
Copy link
Contributor

jen20 commented Dec 17, 2017

Thanks for adding the test here - this looks good to me now!

@jen20 jen20 merged commit a928cc7 into hashicorp:master Dec 17, 2017
@ghost
Copy link

ghost commented Apr 10, 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 10, 2020
@breathingdust breathingdust removed the waiting-response Maintainers are waiting on response from community or contributor. label Sep 17, 2021
@bodgit bodgit deleted the issue1311 branch March 4, 2022 13:45
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. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_volume_attachment shouldnt have to wait for instance to be running to attach
6 participants