spec/requests/api/groups_spec failures
Job #1296535259 failed for 959093b1:
Failures:
1) API::Groups GET /groups/:id when authenticated as admin does not return a non existing group
Failure/Error: expect(response).to have_gitlab_http_status(:not_found)
expected the response to have status code :not_found but it was 200. The response was: {"id":1328,"web_url":"http://localhost/groups/group208","name":"group208","path":"group208","description":"","visibility":"private","share_with_group_lock":false,"require_two_factor_authentication":false,"two_factor_grace_period":48,"project_creation_level":"maintainer","auto_devops_enabled":null,"subgroup_creation_level":"maintainer","emails_disabled":null,"mentions_disabled":null,"lfs_enabled":false,"default_branch_protection":2,"avatar_url":null,"request_access_enabled":true,"full_name":"group208","full_path":"group208","created_at":"2021-05-27T00:16:06.416Z","parent_id":null,"ldap_cn":null,"ldap_access":null,"shared_with_groups":[],"runners_token":"KW7iaid99C3byZoCt_RB","projects":[{"id":191,"description":null,"name":"project190","name_with_namespace":"group208 / project190","path":"project190","path_with_namespace":"group208/project190","created_at":"2021-05-27T00:16:06.612Z","default_branch":null,"tag_list":[],"ssh_url_to_repo":"git@localhost:group208/project190.git","http_url_to_repo":"http://localhost/group208/project190.git","web_url":"http://localhost/group208/project190","readme_url":null,"avatar_url":null,"forks_count":0,"star_count":0,"last_activity_at":"2021-05-27T00:16:06.612Z","namespace":{"id":1328,"name":"group208","path":"group208","kind":"group","full_path":"group208","parent_id":null,"avatar_url":null,"web_url":"http://localhost/groups/group208"},"_links":{"self":"http://localhost/api/v4/projects/191","issues":"http://localhost/api/v4/projects/191/issues","merge_requests":"http://localhost/api/v4/projects/191/merge_requests","repo_branches":"http://localhost/api/v4/projects/191/repository/branches","labels":"http://localhost/api/v4/projects/191/labels","events":"http://localhost/api/v4/projects/191/events","members":"http://localhost/api/v4/projects/191/members"},"packages_enabled":true,"empty_repo":true,"archived":false,"visibility":"private","resolve_outdated_diff_discussions":false,"container_registry_enabled":true,"container_expiration_policy":{"cadence":"1d","enabled":false,"keep_n":10,"older_than":"90d","name_regex":".*","name_regex_keep":null,"next_run_at":"2021-05-28T00:16:06.622Z"},"issues_enabled":true,"merge_requests_enabled":true,"wiki_enabled":true,"jobs_enabled":true,"snippets_enabled":true,"service_desk_enabled":false,"service_desk_address":null,"can_create_merge_request_in":true,"issues_access_level":"enabled","repository_access_level":"enabled","merge_requests_access_level":"enabled","forking_access_level":"enabled","wiki_access_level":"enabled","builds_access_level":"enabled","snippets_access_level":"enabled","pages_access_level":"private","operations_access_level":"enabled","analytics_access_level":"enabled","emails_disabled":null,"shared_runners_enabled":true,"lfs_enabled":false,"creator_id":1122,"import_status":"none","open_issues_count":0,"ci_default_git_depth":50,"ci_forward_deployment_enabled":true,"public_jobs":true,"build_timeout":3600,"auto_cancel_pending_pipelines":"enabled","build_coverage_regex":null,"ci_config_path":null,"shared_with_groups":[],"only_allow_merge_if_pipeline_succeeds":false,"allow_merge_on_skipped_pipeline":null,"restrict_user_defined_variables":false,"request_access_enabled":true,"only_allow_merge_if_all_discussions_are_resolved":false,"remove_source_branch_after_merge":true,"printing_merge_request_link_enabled":true,"merge_method":"merge","suggestion_commit_message":null,"auto_devops_enabled":true,"auto_devops_deploy_strategy":"continuous","autoclose_referenced_issues":true,"repository_storage":"default","approvals_before_merge":0,"mirror":false,"requirements_enabled":false,"security_and_compliance_enabled":true,"compliance_frameworks":[],"issues_template":null,"merge_requests_template":null}],"shared_projects":[],"shared_runners_minutes_limit":null,"extra_shared_runners_minutes_limit":null,"prevent_forking_outside_group":null}
# ./spec/requests/api/groups_spec.rb:591:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:375:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:366:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:362:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:362:in `block (2 levels) in <top (required)>'
2) API::Groups GET /groups/:id/projects when authenticated as admin does not return a non existing group
Failure/Error: expect(response).to have_gitlab_http_status(:not_found)
expected the response to have status code :not_found but it was 200. The response was: [{"id":191,"description":null,"name":"project190","name_with_namespace":"group208 / project190","path":"project190","path_with_namespace":"group208/project190","created_at":"2021-05-27T00:16:06.612Z","default_branch":null,"tag_list":[],"ssh_url_to_repo":"git@localhost:group208/project190.git","http_url_to_repo":"http://localhost/group208/project190.git","web_url":"http://localhost/group208/project190","readme_url":null,"avatar_url":null,"forks_count":0,"star_count":0,"last_activity_at":"2021-05-27T00:16:06.612Z","namespace":{"id":1328,"name":"group208","path":"group208","kind":"group","full_path":"group208","parent_id":null,"avatar_url":null,"web_url":"http://localhost/groups/group208"},"_links":{"self":"http://localhost/api/v4/projects/191","issues":"http://localhost/api/v4/projects/191/issues","merge_requests":"http://localhost/api/v4/projects/191/merge_requests","repo_branches":"http://localhost/api/v4/projects/191/repository/branches","labels":"http://localhost/api/v4/projects/191/labels","events":"http://localhost/api/v4/projects/191/events","members":"http://localhost/api/v4/projects/191/members"},"packages_enabled":true,"empty_repo":true,"archived":false,"visibility":"private","resolve_outdated_diff_discussions":false,"container_registry_enabled":true,"container_expiration_policy":{"cadence":"1d","enabled":false,"keep_n":10,"older_than":"90d","name_regex":".*","name_regex_keep":null,"next_run_at":"2021-05-28T00:16:06.622Z"},"issues_enabled":true,"merge_requests_enabled":true,"wiki_enabled":true,"jobs_enabled":true,"snippets_enabled":true,"service_desk_enabled":false,"service_desk_address":null,"can_create_merge_request_in":true,"issues_access_level":"enabled","repository_access_level":"enabled","merge_requests_access_level":"enabled","forking_access_level":"enabled","wiki_access_level":"enabled","builds_access_level":"enabled","snippets_access_level":"enabled","pages_access_level":"private","operations_access_level":"enabled","analytics_access_level":"enabled","emails_disabled":null,"shared_runners_enabled":true,"lfs_enabled":false,"creator_id":1122,"import_status":"none","open_issues_count":0,"ci_default_git_depth":50,"ci_forward_deployment_enabled":true,"public_jobs":true,"build_timeout":3600,"auto_cancel_pending_pipelines":"enabled","build_coverage_regex":null,"ci_config_path":null,"shared_with_groups":[],"only_allow_merge_if_pipeline_succeeds":false,"allow_merge_on_skipped_pipeline":null,"restrict_user_defined_variables":false,"request_access_enabled":true,"only_allow_merge_if_all_discussions_are_resolved":false,"remove_source_branch_after_merge":true,"printing_merge_request_link_enabled":true,"merge_method":"merge","suggestion_commit_message":null,"auto_devops_enabled":true,"auto_devops_deploy_strategy":"continuous","autoclose_referenced_issues":true,"repository_storage":"default","approvals_before_merge":0,"mirror":false,"requirements_enabled":false,"security_and_compliance_enabled":true,"compliance_frameworks":[],"issues_template":null,"merge_requests_template":null}]
# ./spec/requests/api/groups_spec.rb:1013:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:375:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:366:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:362:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:362:in `block (2 levels) in <top (required)>'
3) API::Groups DELETE /groups/:id when authenticated as admin does not remove a non existing group
Failure/Error: expect(response).to have_gitlab_http_status(:not_found)
expected the response to have status code :not_found but it was 202. The response was: {"message":"202 Accepted"}
# ./spec/requests/api/groups_spec.rb:1692:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:375:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:366:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:362:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:362:in `block (2 levels) in <top (required)>'
Finished in 17 minutes 24 seconds (files took 45.19 seconds to load)
2574 examples, 3 failures
Failed examples:
rspec ./spec/requests/api/groups_spec.rb:588 # API::Groups GET /groups/:id when authenticated as admin does not return a non existing group
rspec ./spec/requests/api/groups_spec.rb:1010 # API::Groups GET /groups/:id/projects when authenticated as admin does not return a non existing group
rspec ./spec/requests/api/groups_spec.rb:1689 # API::Groups DELETE /groups/:id when authenticated as admin does not remove a non existing group