legend-sdlc icon indicating copy to clipboard operation
legend-sdlc copied to clipboard

During project import, workspace and merge request created for project structure exists in GitLab despite error from endpoint

Open nandhini-sarathy opened this issue 2 years ago • 0 comments

Importing a project involves the following steps:

  1. Create a workspace in GitLab.
  2. Add the project structure in the workspace.
  3. Create a merge request for the workspace.
  4. Update the project with tag.

Steps to Reproduce:

  1. Create a GitLab user account with permission to create workspace and merge requests, but not to update project.
  2. Invoke import project endpoint through the same account.
  3. Check the response returned from the endpoint. Excepted Response - '403 Forbidden'.
  4. 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.

nandhini-sarathy avatar Mar 20 '22 13:03 nandhini-sarathy