Spec failure in spec/requests/api/issues_spec.rb:1457 - issue move API

Failures:

  1) API::Issues /projects/:id/issues/:issue_iid/move when source project does not exist returns 404 when trying to move an issue
     Failure/Error: expect(response).to have_gitlab_http_status(404)
       expected the response to have status code 404 but it was 201. The response was: {"id":793,"iid":1,"project_id":176,"title":"foo","description":"closed","state":"opened","created_at":"2018-01-26T13:26:13.958Z","updated_at":"2018-01-26T17:10:14.018Z","closed_at":null,"labels":[],"milestone":null,"assignees":[],"author":{"id":522,"name":"John Doe521","username":"user521","state":"active","avatar_url":"https://www.gravatar.com/avatar/3a20f647e4ae1f9a215a9cdcc77c095e?s=80&d=identicon","web_url":"http://localhost/user521"},"assignee":null,"user_notes_count":1,"upvotes":0,"downvotes":0,"due_date":null,"confidential":false,"discussion_locked":null,"web_url":"http://localhost/user521/project2/issues/1","time_stats":{"time_estimate":0,"total_time_spent":0,"human_time_estimate":null,"human_total_time_spent":null},"_links":{"self":"http://localhost/api/v4/projects/176/issues/1","notes":"http://localhost/api/v4/projects/176/issues/1/notes","award_emoji":"http://localhost/api/v4/projects/176/issues/1/award_emoji","project":"http://localhost/api/v4/projects/176"},"subscribed":true}
     # ./spec/requests/api/issues_spec.rb:1447:in `block (4 levels) in <top (required)>'

  2) API::Issues /projects/:id/issues/:issue_iid/move when target project does not exist returns 404 when trying to move an issue
     Failure/Error: expect(response).to have_gitlab_http_status(404)
       expected the response to have status code 404 but it was 400. The response was: {"message":"Cannot move issue to project it originates from!"}
     # ./spec/requests/api/issues_spec.rb:1457:in `block (4 levels) in <top (required)>'

Example failures

  • https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/49751539
Assignee Loading
Time tracking Loading