Move creation of Server Hooks to API
Currently to test and verify server hooks we run and exec_command to add hooks to repositories during environment orchestration. This is pretty heavy handed and allows for checking against only a single value, while also meaning that the test isn't suitable to run against a live environment.
With https://gitlab.com/gitlab-org/gitaly/-/issues/4629+ we will have a new API or CLI tool available for adding server hooks to repositories.
We should update tests that make use of hooks to make use of this new API, and remove the use of these process_exec_commands.
-
server_hooks_custom_error_message_spec -
Update spec to run against live environments if applicable -
Remove the use of add_git_server_hooks from gitlab-qa
Edited by George Koltsov