Failure in api/3_create/repository/tag_revision_trigger_prereceive_hook_spec.rb | Create Prereceive hook when creating a tag for a ref when it triggers a prereceive hook configured with a custom error returns a custom server hook error
Summary
Failing job(s): https://gitlab.com/gitlab-org/gitlab/-/jobs/6864882225
Failing spec(s): rspec ./qa/specs/features/api/3_create/repository/tag_revision_trigger_prereceive_hook_spec.rb:17 # Create Prereceive hook when creating a tag for a ref when it triggers a prereceive hook configured with a custom error returns a custom server hook error
Corresponding test case(s): https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/369053
Stack trace
Failures:
1) Create Prereceive hook when creating a tag for a ref when it triggers a prereceive hook configured with a custom error returns a custom server hook error
Failure/Error:
expect { project.create_repository_tag('v1.2.3') }
.to raise_error.with_message(
/rejecting prereceive hook for projects with GL_PROJECT_PATH matching pattern reject-prereceive/
)
expected Exception with message matching /rejecting prereceive hook for projects with GL_PROJECT_PATH matching pattern reject-prereceive/ but nothing was raised
# ./qa/specs/features/api/3_create/repository/tag_revision_trigger_prereceive_hook_spec.rb:21:in `block (5 levels) in <module:QA>'
# /builds/gitlab-org/gitlab/spec/support/fast_quarantine.rb:22:in `block (2 levels) in <top (required)>'