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

Check for state change on user delete #539

Merged
merged 1 commit into from
Jan 29, 2021

Conversation

armsnyder
Copy link
Collaborator

Fixes #533

I analyzed the test debug output and found that the problem was some inconsistency after a user is deleted.

I see DELETE /api/v4/users/114 HTTP/1.1 return HTTP/1.1 204 No Content, and then later in the test during the destroy check, GET /api/v4/users/114 HTTP/1.1 returns HTTP/1.1 200 OK.

This fix adds WaitForState to the gitlab_user delete function.

gitlab/resource_gitlab_user.go Outdated Show resolved Hide resolved
@roidelapluie
Copy link
Collaborator

LGTM, one nit

@armsnyder armsnyder merged commit e84c370 into gitlabhq:master Jan 29, 2021
@armsnyder armsnyder deleted the user-delete-wait branch January 29, 2021 19:38
@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

TestAccGitLabProjectApprovalRule_basic test failing in master
2 participants