Spec failure in spec/requests/api/issues/get_project_issues_spec.rb
Job #222215606 failed for 7e80290e:
Failed examples:
rspec ./spec/requests/api/issues/get_project_issues_spec.rb:174 # API::Issues GET /projects/:id/issues returns 404 when project does not exist
Stacktrace:
Failures:
1) API::Issues GET /projects/:id/issues returns 404 when project does not exist
Failure/Error: expect(response).to have_gitlab_http_status(404)
expected the response to have status code 404 but it was 200. The response was: [{"id":79,"iid":3,"project_id":1000,"title":"foo","description":"closed","state":"opened","created_at":"2019-05-30T07:05:44.950Z","updated_at":"2019-05-30T11:05:15.031Z","closed_at":null,"closed_by":null,"labels":["label"],"milestone":{"id":6,"iid":2,"project_id":1000,"title":"1.0.0","description":null,"state":"active","created_at":"2019-05-30T11:05:14.833Z","updated_at":"2019-05-30T11:05:14.833Z","due_date":null,"start_date":null,"web_url":"http://localhost/user1806/project809/milestones/2"},"assignees":[{"id":1873,"name":"John Doe1879","username":"user1806","state":"active","avatar_url":"https://www.gravatar.com/avatar/b9bb00c7e2e6d5a40f57a71909c2d863?s=80\u0026d=identicon","web_url":"http://localhost/user1806"}],"author":{"id":1873,"name":"John Doe1879","username":"user1806","state":"active","avatar_url":"https://www.gravatar.com/avatar/b9bb00c7e2e6d5a40f57a71909c2d863?s=80\u0026d=identicon","web_url":"http://localhost/user1806"},"assignee":{"id":1873,"name":"John Doe1879","username":"user1806","state":"active","avatar_url":"https://www.gravatar.com/avatar/b9bb00c7e2e6d5a40f57a71909c2d863?s=80\u0026d=identicon","web_url":"http://localhost/user1806"},"user_notes_count":1,"merge_requests_count":0,"upvotes":0,"downvotes":0,"due_date":null,"confidential":false,"discussion_locked":null,"web_url":"http://localhost/user1806/project809/issues/3","time_stats":{"time_estimate":0,"total_time_spent":0,"human_time_estimate":null,"human_total_time_spent":null},"has_tasks":false,"_links":{"self":"http://localhost/api/v4/projects/1000/issues/3","notes":"http://localhost/api/v4/projects/1000/issues/3/notes","award_emoji":"http://localhost/api/v4/projects/1000/issues/3/award_emoji","project":"http://localhost/api/v4/projects/1000"},"subscribed":false},{"id":77,"iid":1,"project_id":1000,"title":"My title 376","description":null,"state":"closed","created_at":"2019-05-30T07:05:40.848Z","updated_at":"2019-05-30T08:05:14.848Z","closed_at":"2019-05-30T10:05:14.848Z","closed_by":null,"labels":[],"milestone":{"id":6,"iid":2,"project_id":1000,"title":"1.0.0","description":null,"state":"active","created_at":"2019-05-30T11:05:14.833Z","updated_at":"2019-05-30T11:05:14.833Z","due_date":null,"start_date":null,"web_url":"http://localhost/user1806/project809/milestones/2"},"assignees":[{"id":1873,"name":"John Doe1879","username":"user1806","state":"active","avatar_url":"https://www.gravatar.com/avatar/b9bb00c7e2e6d5a40f57a71909c2d863?s=80\u0026d=identicon","web_url":"http://localhost/user1806"}],"author":{"id":1873,"name":"John Doe1879","username":"user1806","state":"active","avatar_url":"https://www.gravatar.com/avatar/b9bb00c7e2e6d5a40f57a71909c2d863?s=80\u0026d=identicon","web_url":"http://localhost/user1806"},"assignee":{"id":1873,"name":"John Doe1879","username":"user1806","state":"active","avatar_url":"https://www.gravatar.com/avatar/b9bb00c7e2e6d5a40f57a71909c2d863?s=80\u0026d=identicon","web_url":"http://localhost/user1806"},"user_notes_count":0,"merge_requests_count":0,"upvotes":0,"downvotes":0,"due_date":null,"confidential":false,"discussion_locked":null,"web_url":"http://localhost/user1806/project809/issues/1","time_stats":{"time_estimate":0,"total_time_spent":0,"human_time_estimate":null,"human_total_time_spent":null},"has_tasks":false,"_links":{"self":"http://localhost/api/v4/projects/1000/issues/1","notes":"http://localhost/api/v4/projects/1000/issues/1/notes","award_emoji":"http://localhost/api/v4/projects/1000/issues/1/award_emoji","project":"http://localhost/api/v4/projects/1000"},"subscribed":false}]
# ./vendor/ruby/2.6.0/gems/rspec-support-3.7.1/lib/rspec/support.rb:97:in `block in <module:Support>'
# ./vendor/ruby/2.6.0/gems/rspec-support-3.7.1/lib/rspec/support.rb:106:in `notify_failure'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/fail_with.rb:35:in `fail_with'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/handler.rb:40:in `handle_failure'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/handler.rb:50:in `block in handle_matcher'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/handler.rb:27:in `with_matcher'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/expectation_target.rb:65:in `to'
# ./spec/requests/api/issues/get_project_issues_spec.rb:177:in `block (3 levels) in <top (required)>'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:254:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:254:in `block in run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:500:in `block in with_around_and_singleton_context_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:457:in `block in with_around_example_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:466:in `block in run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:606:in `block in run_around_example_hooks_for'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:342:in `call'
# ./vendor/ruby/2.6.0/gems/rspec-rails-3.7.2/lib/rspec/rails/adapters.rb:127:in `block (2 levels) in <module:MinitestLifecycleAdapter>'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:447:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:447:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:375:in `execute_with'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:342:in `call'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.4.5/lib/rspec/retry.rb:98:in `block in run'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.4.5/lib/rspec/retry.rb:88:in `loop'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.4.5/lib/rspec/retry.rb:88:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.4.5/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
# ./vendor/ruby/2.6.0/gems/rspec-retry-0.4.5/lib/rspec/retry.rb:22:in `block (2 levels) in setup'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:447:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:447:in `instance_exec'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:375:in `execute_with'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:608:in `block (2 levels) in run_around_example_hooks_for'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:342:in `call'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:609:in `run_around_example_hooks_for'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:466:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:457:in `with_around_example_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:500:in `with_around_and_singleton_context_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:251:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:628:in `block in run_examples'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:624:in `map'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:624:in `run_examples'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:590:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `block in run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `map'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb:591:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:118:in `block (3 levels) in run_specs'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:118:in `map'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:118:in `block (2 levels) in run_specs'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/configuration.rb:1926:in `with_suite_hooks'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:113:in `block in run_specs'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/reporter.rb:79:in `report'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:112:in `run_specs'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:87:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:71:in `run'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:45:in `invoke'
# ./vendor/ruby/2.6.0/gems/rspec-core-3.7.1/exe/rspec:4:in `<top (required)>'
# ./vendor/ruby/2.6.0/bin/rspec:23:in `load'
# ./vendor/ruby/2.6.0/bin/rspec:23:in `<top (required)>'
# /usr/local/lib/ruby/2.6.0/bundler/cli/exec.rb:74:in `load'
# /usr/local/lib/ruby/2.6.0/bundler/cli/exec.rb:74:in `kernel_load'
# /usr/local/lib/ruby/2.6.0/bundler/cli/exec.rb:28:in `run'
# /usr/local/lib/ruby/2.6.0/bundler/cli.rb:463:in `exec'
# /usr/local/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
# /usr/local/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
# /usr/local/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
# /usr/local/lib/ruby/2.6.0/bundler/cli.rb:27:in `dispatch'
# /usr/local/lib/ruby/2.6.0/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
# /usr/local/lib/ruby/2.6.0/bundler/cli.rb:18:in `start'
# /usr/local/lib/ruby/gems/2.6.0/gems/bundler-1.17.2/exe/bundle:30:in `block in <top (required)>'
# /usr/local/lib/ruby/2.6.0/bundler/friendly_errors.rb:124:in `with_friendly_errors'
# /usr/local/lib/ruby/gems/2.6.0/gems/bundler-1.17.2/exe/bundle:22:in `<top (required)>'
# /usr/local/bin/bundle:23:in `load'
# /usr/local/bin/bundle:23:in `<main>'