-
Notifications
You must be signed in to change notification settings - Fork 190
INTMDB-433: make sure failed Terraform run rolls back properly #1264
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
Conversation
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.
There is one failing test that looks legit 9692262381?pr=1264#step:4:148
_, errd := conn.Projects.Delete(ctx, project.ID) | ||
if errd != nil { | ||
return diag.Errorf(errorProjectDelete, project.ID, errd) | ||
} |
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.
Why can't we use deleteProject()
here?
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.
Modified create to use this function in all delete project requests so that it uses function with timeout
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
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.
@martinstibbe can you confirm that no change is required to resource_mongodbatlas_project_test.go?
resource_mongodbatlas_project_test.go no changes needed just deletes project if it fails to create all the additional attached pieces during create i.e. teams/api keys |
Description
INTMDB-433: make sure failed Terraform run rolls back properly
Please include a summary of the fix/feature/change, including any relevant motivation and context.
Link to any related issue(s):
#700
https://jira.mongodb.org/browse/INTMDB-433
Type of change:
Required Checklist:
Further comments