Problem to solve
User deletion with the API is asynchronous. In a test environment, using a freshly provisioned GitLab instance, it can take from one to five minutes.
It would speed up the test scripts if there was a way to require that the user deletion happens within shorter delays.
Steps to reproduce
- Create user foobar => success
- Delete the user foobar => success 204
- Create user foobar => fails
Workaround
- Create user foobar => success
- Loop until status is 404
- Create user foobar => success
Versions
- 16.11.0-ce.0
- Self-managed
Run from:
GITLAB_OMNIBUS_CONFIG="nginx['listen_https'] = false ; nginx['listen_port'] = 8181 ; external_url 'http://0.0.0.0:8181'; gitlab_rails['gitlab_shell_ssh_port'] = 2221;"
docker run --name="test-gitlab" --shm-size=128M -d \
-e GITLAB_OMNIBUS_CONFIG="$GITLAB_OMNIBUS_CONFIG" \
-p 2221:22 -p 8181:8181 gitlab/gitlab-ce:16.11.0-ce.0