ee/api/1_manage/user/minimal_access_user_spec.rb | Fabrication of QA::Resource::Project using the API failed
Summary
Staging Job: https://ops.gitlab.net/gitlab-org/quality/staging/-/jobs/5477904
Stack trace
1) Manage User with minimal access to group is not allowed to push code via the CLI
Failure/Error:
@project = Resource::Project.fabricate_via_api! do |project|
project.group = @group
project.name = "project-for-minimal-access"
project.initialize_with_readme = true
end
QA::Resource::ApiFabricator::ResourceFabricationFailedError:
Fabrication of QA::Resource::Project using the API failed (400) with `{"message":{"path":["project-for-minimal-access-c6ff2a3a91efa8de is a reserved name"],"namespace":["can't be blank"]}}`.
# ./qa/resource/api_fabricator.rb:121:in `api_post_to'
# ./qa/resource/api_fabricator.rb:99:in `api_post'
# ./qa/resource/api_fabricator.rb:34:in `fabricate_via_api!'
# ./qa/resource/project.rb:107:in `rescue in fabricate_via_api!'
# ./qa/resource/project.rb:104:in `fabricate_via_api!'
# ./qa/resource/base.rb:50:in `block (2 levels) in fabricate_via_api!'
# ./qa/resource/base.rb:81:in `log_fabrication'
# ./qa/resource/base.rb:50:in `block in fabricate_via_api!'
# ./qa/resource/base.rb:71:in `do_fabricate!'
# ./qa/resource/base.rb:49:in `fabricate_via_api!'
# ./qa/specs/features/ee/api/1_manage/user/minimal_access_user_spec.rb:19:in `block (3 levels) in <module:QA>'
# ./qa/specs/runner.rb:74:in `perform'
# ./qa/scenario/template.rb:10:in `block in perform'
# ./qa/scenario/template.rb:8:in `tap'
# ./qa/scenario/template.rb:8:in `perform'
# ./qa/scenario/template.rb:44:in `perform'
# ./qa/scenario/template.rb:10:in `block in perform'
# ./qa/scenario/template.rb:8:in `tap'
# ./qa/scenario/template.rb:8:in `perform'
# ./qa/scenario/bootable.rb:44:in `launch!'
# ------------------
# --- Caused by: ---
# QA::Resource::ApiFabricator::ResourceNotFoundError:
# Resource at https://staging.gitlab.com/api/v4/projects/gitlab-qa-sandbox-group%2Fqa-test-2021-11-18-09-04-25-a2e5cf81fdad70a0%2Fproject-for-minimal-access-c6ff2a3a91efa8de?private_token=[****] could not be found (404): `{"message":"404 Project Not Found"}`.
# ./qa/resource/api_fabricator.rb:92:in `api_get_from'
Screenshot / HTML page
No screenshot available