Spec failures Issues API move issue Job Failed #52756003

This failure has been popping up in the 10-5-stable-ee branches. Functionality is CE but the failures only seem to happen on EE.

Related issue that was fixed: https://gitlab.com/gitlab-org/gitlab-ce/issues/42488

Job #52756003 failed for f389fbe8:

Failures:

  1) API::Issues /projects/:id/issues/:issue_iid/move moves an issue
     Failure/Error: let!(:target_project) { create(:project, path: 'project2', creator_id: user.id, namespace: user.namespace ) }

     ActiveRecord::RecordInvalid:
       Validation failed: Path has already been taken
     # ./spec/requests/api/issues_spec.rb:1387:in `block (3 levels) in <top (required)>'

  2) API::Issues /projects/:id/issues/:issue_iid/move moves the issue to another namespace if I am admin
     Failure/Error: let!(:target_project) { create(:project, path: 'project2', creator_id: user.id, namespace: user.namespace ) }

     ActiveRecord::RecordInvalid:
       Validation failed: Path has already been taken
     # ./spec/requests/api/issues_spec.rb:1387:in `block (3 levels) in <top (required)>'

  3) API::Issues /projects/:id/issues/:issue_iid/move when source and target projects are the same returns 400 when trying to move an issue
     Failure/Error: let!(:target_project) { create(:project, path: 'project2', creator_id: user.id, namespace: user.namespace ) }

     ActiveRecord::RecordInvalid:
       Validation failed: Path has already been taken
     # ./spec/requests/api/issues_spec.rb:1387:in `block (3 levels) in <top (required)>'

  4) API::Issues /projects/:id/issues/:issue_iid/move when the user does not have the permission to move issues returns 400 when trying to move an issue
     Failure/Error: let!(:target_project) { create(:project, path: 'project2', creator_id: user.id, namespace: user.namespace ) }

     ActiveRecord::RecordInvalid:
       Validation failed: Path has already been taken
     # ./spec/requests/api/issues_spec.rb:1387:in `block (3 levels) in <top (required)>'

  5) API::Issues /projects/:id/issues/:issue_iid/move when using the issue ID instead of iid returns 404 when trying to move an issue
     Failure/Error: let!(:target_project) { create(:project, path: 'project2', creator_id: user.id, namespace: user.namespace ) }

     ActiveRecord::RecordInvalid:
       Validation failed: Path has already been taken
     # ./spec/requests/api/issues_spec.rb:1387:in `block (3 levels) in <top (required)>'

  6) API::Issues /projects/:id/issues/:issue_iid/move when issue does not exist returns 404 when trying to move an issue
     Failure/Error: let!(:target_project) { create(:project, path: 'project2', creator_id: user.id, namespace: user.namespace ) }

     ActiveRecord::RecordInvalid:
       Validation failed: Path has already been taken
     # ./spec/requests/api/issues_spec.rb:1387:in `block (3 levels) in <top (required)>'

  7) API::Issues /projects/:id/issues/:issue_iid/move when source project does not exist returns 404 when trying to move an issue
     Failure/Error: let!(:target_project) { create(:project, path: 'project2', creator_id: user.id, namespace: user.namespace ) }

     ActiveRecord::RecordInvalid:
       Validation failed: Path has already been taken
     # ./spec/requests/api/issues_spec.rb:1387:in `block (3 levels) in <top (required)>'

  8) API::Issues /projects/:id/issues/:issue_iid/move when target project does not exist returns 404 when trying to move an issue
     Failure/Error: let!(:target_project) { create(:project, path: 'project2', creator_id: user.id, namespace: user.namespace ) }

     ActiveRecord::RecordInvalid:
       Validation failed: Path has already been taken
     # ./spec/requests/api/issues_spec.rb:1387:in `block (3 levels) in <top (required)>'

Finished in 9 minutes 42 seconds (files took 20.03 seconds to load)
1800 examples, 8 failures, 44 pending

Failed examples:

rspec ./spec/requests/api/issues_spec.rb:1390 # API::Issues /projects/:id/issues/:issue_iid/move moves an issue
rspec ./spec/requests/api/issues_spec.rb:1418 # API::Issues /projects/:id/issues/:issue_iid/move moves the issue to another namespace if I am admin
rspec ./spec/requests/api/issues_spec.rb:1399 # API::Issues /projects/:id/issues/:issue_iid/move when source and target projects are the same returns 400 when trying to move an issue
rspec ./spec/requests/api/issues_spec.rb:1409 # API::Issues /projects/:id/issues/:issue_iid/move when the user does not have the permission to move issues returns 400 when trying to move an issue
rspec ./spec/requests/api/issues_spec.rb:1427 # API::Issues /projects/:id/issues/:issue_iid/move when using the issue ID instead of iid returns 404 when trying to move an issue
rspec ./spec/requests/api/issues_spec.rb:1437 # API::Issues /projects/:id/issues/:issue_iid/move when issue does not exist returns 404 when trying to move an issue
rspec ./spec/requests/api/issues_spec.rb:1447 # API::Issues /projects/:id/issues/:issue_iid/move when source project does not exist returns 404 when trying to move an issue
rspec ./spec/requests/api/issues_spec.rb:1457 # API::Issues /projects/:id/issues/:issue_iid/move when target project does not exist returns 404 when trying to move an issue

/cc @smcgivern

Assignee Loading
Time tracking Loading