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

provider/aws: Improve error handling in IAM Server Certificates #6442

Merged
merged 2 commits into from
May 2, 2016

Conversation

catsby
Copy link
Contributor

@catsby catsby commented May 2, 2016

This PR does 3 things:

  • removes an IAM Server Cert from state if it's not found on READ, instead of throwing an error. This will correctly prompt to re-create if in a plan
  • removes the cert from state if it's not found in a DELETE (API returns a NoSuchEntity error), instead of throwing an error locally and blocking progress
  • Extends the timeout for retrying the delete if it's found to be in use. The cert can retain this "in use" status even after and ELB has stopped using it for a period greater than 1 minute. I was unable to reproduce it with a 3 minute timeout

@@ -51,6 +51,41 @@ func TestAccAWSIAMServerCertificate_name_prefix(t *testing.T) {
})
}

func TestAccAWSIAMServerCertificate_recreate(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Conventionally I've been calling these _disappears tests.

@phinze
Copy link
Contributor

phinze commented May 2, 2016

LGTM! Couple of optional notes inline on the test.

@catsby
Copy link
Contributor Author

catsby commented May 2, 2016

Applied feedback in 4efb067, going to go ahead and pull this in

@catsby catsby merged commit d5f0fc2 into master May 2, 2016
bigkraig pushed a commit to ticketmaster/terraform that referenced this pull request May 5, 2016
…icorp#6442)

* provider/aws: Improve error handling in IAM Server Certificates

* rename test, add additional empty check
bigkraig pushed a commit to ticketmaster/terraform that referenced this pull request May 5, 2016
…icorp#6442)

* provider/aws: Improve error handling in IAM Server Certificates

* rename test, add additional empty check
@jen20 jen20 deleted the f-aws-iam-server-wait branch May 10, 2016 20:19
xsellier pushed a commit to xsellier/terraform that referenced this pull request May 17, 2016
…icorp#6442)

* provider/aws: Improve error handling in IAM Server Certificates

* rename test, add additional empty check
@ghost
Copy link

ghost commented Apr 25, 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 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.

@ghost ghost locked and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants