Failure in qa/specs/features/browser_ui/1_manage/group/bulk_import_group_spec.rb | API failed (403) with `{"message":"403 Forbidden"}
Summary
https://ops.gitlab.net/gitlab-org/quality/staging/-/jobs/3834195
Stack trace
Failures:
1) Manage Group bulk import performs bulk group import from another gitlab instance
Got 0 failures and 2 other errors:
1.1) Failure/Error:
Resource::Sandbox.fabricate_via_api! do |group|
group.api_client = api_client
group.path = "source-group-for-import-#{SecureRandom.hex(4)}"
end
QA::Resource::ApiFabricator::ResourceFabricationFailedError:
Fabrication of QA::Resource::Sandbox using the API failed (403) with `{"message":"403 Forbidden"}`.
# ./qa/resource/api_fabricator.rb:120:in `api_post'
# ./qa/resource/api_fabricator.rb:34:in `fabricate_via_api!'
# ./qa/resource/sandbox.rb:44:in `rescue in fabricate_via_api!'
# ./qa/resource/sandbox.rb:41:in `fabricate_via_api!'
# ./qa/resource/base.rb:46:in `block (2 levels) in fabricate_via_api!'
# ./qa/resource/base.rb:135:in `log_fabrication'
# ./qa/resource/base.rb:46:in `block in fabricate_via_api!'
# ./qa/resource/base.rb:118:in `do_fabricate!'
# ./qa/resource/base.rb:45:in `fabricate_via_api!'
# ./qa/specs/features/browser_ui/1_manage/group/bulk_import_group_spec.rb:23:in `block (3 levels) in <module:QA>'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
# ./spec/spec_helper.rb:80:in `block (2 levels) in <top (required)>'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
# ./qa/specs/runner.rb:73: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:35: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:28:in `launch!'
# ------------------
# --- Caused by: ---
# QA::Resource::ApiFabricator::ResourceNotFoundError:
# Resource at https://staging.gitlab.com/api/v4/groups/source-group-for-import-76ce8308?private_token=[****] could not be found (404): `{"message":"404 Group Not Found"}`.
# ./qa/resource/api_fabricator.rb:92:in `api_get_from'
1.2) Failure/Error:
Resource::Sandbox.fabricate_via_api! do |group|
group.api_client = api_client
group.path = "source-group-for-import-#{SecureRandom.hex(4)}"
end
QA::Resource::ApiFabricator::ResourceFabricationFailedError:
Fabrication of QA::Resource::Sandbox using the API failed (403) with `{"message":"403 Forbidden"}`.
# ./qa/resource/api_fabricator.rb:120:in `api_post'
# ./qa/resource/api_fabricator.rb:34:in `fabricate_via_api!'
# ./qa/resource/sandbox.rb:44:in `rescue in fabricate_via_api!'
# ./qa/resource/sandbox.rb:41:in `fabricate_via_api!'
# ./qa/resource/base.rb:46:in `block (2 levels) in fabricate_via_api!'
# ./qa/resource/base.rb:135:in `log_fabrication'
# ./qa/resource/base.rb:46:in `block in fabricate_via_api!'
# ./qa/resource/base.rb:118:in `do_fabricate!'
# ./qa/resource/base.rb:45:in `fabricate_via_api!'
# ./qa/specs/features/browser_ui/1_manage/group/bulk_import_group_spec.rb:23:in `block (3 levels) in <module:QA>'
# ./qa/specs/features/browser_ui/1_manage/group/bulk_import_group_spec.rb:86:in `block (3 levels) in <module:QA>'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
# ./spec/spec_helper.rb:80:in `block (2 levels) in <top (required)>'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
# /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
# ./qa/specs/runner.rb:73: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:35: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:28:in `launch!'
# ------------------
# --- Caused by: ---
# QA::Resource::ApiFabricator::ResourceNotFoundError:
# Resource at https://staging.gitlab.com/api/v4/groups/source-group-for-import-49a40e30?private_token=[****] could not be found (404): `{"message":"404 Group Not Found"}`.
# ./qa/resource/api_fabricator.rb:92:in `api_get_from'
Screenshot / HTML page
Possible fixes
Edited by Désirée Chevalier