Failure in api/1_manage/group_access_token_spec.rb | Manage Group access token can be used to commit via the API

Full description

Manage Group access token can be used to commit via the API

File path

./qa/specs/features/api/1_manage/group_access_token_spec.rb

Stack trace

Failure/Error:
  expect do
    Resource::Repository::Commit.fabricate_via_api! do |commit|
      commit.api_client = api_client
      commit.project = project
      commit.branch = "new_branch_#{SecureRandom.hex(8)}"
      commit.start_branch = project.default_branch
      commit.commit_message = 'Add new file'
      commit.add_files([{ file_path: "text-#{SecureRandom.hex(8)}.txt", content: 'new file' }])
    end
  end.not_to raise_error

  expected no Exception, got #<QA::Resource::Errors::ResourceNotFoundError: Resource at https://gitlab.com/api/v4/users/14073898?p...%3A%28match_phrase%3A%28json.correlation_id%3A%274c4806d987190740c0d8b8ec19f8c6ac%27%29%29%29%29%29> with backtrace:
    # ./qa/resource/api_fabricator.rb:94:in `api_get_from'
    # ./qa/resource/group_access_token.rb:43:in `token_user'
    # ./qa/resource/group_access_token.rb:31:in `identifier'
    # ./qa/resource/base.rb:104:in `block in log_and_record_fabrication'
    # ./qa/resource/base.rb:96:in `log_and_record_fabrication'
    # ./qa/resource/base.rb:65:in `block in fabricate_via_api!'
    # ./qa/resource/base.rb:86:in `do_fabricate!'
    # ./qa/resource/base.rb:64:in `fabricate_via_api!'
    # ./qa/specs/features/api/1_manage/group_access_token_spec.rb:6:in `block (3 levels) in <module:QA>'
    # ./qa/specs/features/api/1_manage/group_access_token_spec.rb:7:in `block (3 levels) in <module:QA>'
    # ./qa/specs/features/api/1_manage/group_access_token_spec.rb:38:in `block (5 levels) in <module:QA>'
    # ./qa/resource/base.rb:84:in `do_fabricate!'
    # ./qa/resource/base.rb:64:in `fabricate_via_api!'
    # ./qa/specs/features/api/1_manage/group_access_token_spec.rb:37:in `block (4 levels) in <module:QA>'
    # ./qa/specs/features/api/1_manage/group_access_token_spec.rb:36:in `block (3 levels) in <module:QA>'
    # ./qa/specs/spec_helper.rb:121:in `block (2 levels) in <top (required)>'
    # ./qa/specs/runner.rb:67:in `perform'
    # ./qa/scenario/template.rb:10:in `block in perform'
    # ./qa/scenario/template.rb:8:in `perform'
    # ./qa/scenario/template.rb:50:in `perform'
    # ./qa/scenario/template.rb:10:in `block in perform'
    # ./qa/scenario/template.rb:8:in `perform'
    # ./qa/scenario/bootable.rb:52:in `launch!'

First happened in https://ops.gitlab.net/gitlab-org/quality/canary/-/jobs/9578810.

Related test case: https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/367067.

Reports (2)

  1. 2023-06-29: https://ops.gitlab.net/gitlab-org/quality/canary/-/jobs/10467762 (https://ops.gitlab.net/gitlab-org/quality/canary/-/pipelines/2066227)
  2. 2023-08-03: https://ops.gitlab.net/gitlab-org/quality/canary/-/jobs/10787894 (https://ops.gitlab.net/gitlab-org/quality/canary/-/pipelines/2180311)
Edited by Ghost User