legend-sdlc
legend-sdlc copied to clipboard
During project import, workspace and merge request created for project structure exists in GitLab despite error from endpoint
Importing a project involves the following steps:
- Create a workspace in GitLab.
- Add the project structure in the workspace.
- Create a merge request for the workspace.
- Update the project with tag.
Steps to Reproduce:
- Create a GitLab user account with permission to create workspace and merge requests, but not to update project.
- Invoke import project endpoint through the same account.
- Check the response returned from the endpoint. Excepted Response - '403 Forbidden'.
- Go to GitLab project overview and check for workspace and merge request created for project structure.
Expected Result: During project import, if updating the project with tag fails, the workspace and merge request created for project structure must be deleted.
Actual Result: Workspace and merge request created for project structure exists in GitLab despite error from import project endpoint.