Skip to content

Failure in browser_ui/4_verify/ci_variable/pipeline_with_protected_variable_spec.rb | Verify Pipeline with protected variable exposes variable on protected branch

Test metadata (don't modify)

Field Value
File URL qa/qa/specs/features/browser_ui/4_verify/ci_variable/pipeline_with_protected_variable_spec.rb#L53
Filename qa/specs/features/browser_ui/4_verify/ci_variable/pipeline_with_protected_variable_spec.rb
Description Verify Pipeline with protected variable exposes variable on protected branch
Test level
Hash bc71fc5be13f49fb7701f9508e2929679a4a05149
Duration 56.12 seconds
Expected duration < 240 seconds
Test case https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/348005

Stack trace

Failure/Error:
  create(:commit,
    api_client: api_client,
    project: project,
    branch: 'protected-branch',
    commit_message: Faker::Lorem.sentence, actions: [
      { action: 'create', file_path: Faker::File.unique.file_name, content: Faker::Lorem.sentence }
    ])

QA::Resource::Errors::ResourceFabricationFailedError:
  Fabrication of QA::Resource::Repository::Commit using the API failed (403) with `{"message":"403 Forbidden - You are not allowed to push into this branch"}`.
  Correlation Id: 01HHTS1A2YPVYHHBJ1GHZZP6V3

Screenshot

verify_pipeline_with_protected_variable_exposes_variable_on_protected_branch_2023-12-17-02-17-44.534

System Logs

Rails API

Click to expand
{
  "severity": "INFO",
  "correlation_id": "01HHTS1A2YPVYHHBJ1GHZZP6V3",
  "time": "2023-12-17T02:17:43.870Z",
  "method": "POST",
  "path": "/api/v4/projects/gitlab-qa-sandbox-group-1%2Fqa-test-2023-12-17-02-07-40-826220ed9a035579%2Fproject-with-ci-vars-e8a1d1edc007771d/repository/commits",
  "status": 403,
  "params": [
    {
      "key": "private_token",
      "value": "[FILTERED]"
    },
    {
      "key": "branch",
      "value": "protected-branch"
    },
    {
      "key": "author_email",
      "value": "gitlab-qa-user2@example.com"
    },
    {
      "key": "author_name",
      "value": "QA User 32414453d1577489"
    },
    {
      "key": "commit_message",
      "value": "Iure commodi officia adipisci."
    },
    {
      "key": "actions",
      "value": [
        {
          "action": "create",
          "file_path": "miscarriage-judge/in.ods",
          "content": "[FILTERED]",
          "encoding": "text"
        }
      ]
    }
  ],
  "meta_user": "gitlab-qa-user2",
  "meta_project": "gitlab-qa-sandbox-group-1/qa-test-2023-12-17-02-07-40-826220ed9a035579/project-with-ci-vars-e8a1d1edc007771d",
  "meta_caller_id": "POST /api/:version/projects/:id/repository/commits"
}

Reports (1)

  1. 2023-12-17: https://gitlab.com/gitlab-org/gitlab/-/jobs/5767804675 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1109502403)