Failure in browser_ui/3_create/repository/restrict_push_protected_branch_spec.rb | Create Restricted protected branch push and merge when only one user is allowed to merge and push to a protected branch behaves like unselected maintainer user fails to ...
Full description
Create Restricted protected branch push and merge when only one user is allowed to merge and push to a protected branch behaves like unselected maintainer user fails to push
File path
./qa/specs/features/ee/browser_ui/3_create/repository/restrict_push_protected_branch_spec.rb
Stack trace
Failure/Error:
expect { push_new_file(branch_name, as_user: user_maintainer) }.to raise_error(
QA::Support::Run::CommandError,
/You are not allowed to push code to protected branches on this project\.([\s\S]+)\[remote rejected\] #{branch_name} -> #{branch_name} \(pre-receive hook declined\)/)
expected QA::Support::Run::CommandError with message matching /You are not allowed to push code to protected branches on this project\.([\s\S]+)\[remote rejected\] protected-branch -> protected-branch \(pre-receive hook declined\)/ but nothing was raised
Shared Example Group: "unselected maintainer" called from ./qa/specs/features/ee/browser_ui/3_create/repository/restrict_push_protected_branch_spec.rb:66
First happened in https://gitlab.com/gitlab-org/gitlab/-/jobs/3096945567.
Related test case: https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347775.