Skip to content

Wait for project deletion then continue tests

What does this MR do and why?

This waits for a project to be deleted completely before proceeding.

Some resources, such as projects, have relations stored in tables that can deleted before the project itself. That can results in errors when trying to retrieve the resource.

For example, if a test deletes a project and then the next test tries to get the group that includes the project, GitLab will return error 500 if a project relation has been deleted (e.g., Project Feature) but the project itself hasn't been deleted yet.

This is unlikely to be a problem for users unless one makes a request at exactly the same time as a project is deleted. And if they do it should be fine after refreshing the browser page.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading