gitlab-org--gitlab-foss/app/services/test_hooks/system_service.rb
Stan Hu 1e53f40c25 Simplify system hook testing and guarantee test will fire
The change in !11728 would cause an arbitrary project to be chosen to test
system hooks, and it's likely that the project would not have any commits or
relevant commits to test the hook. This would prevent admins from verifying
that the hook fired. Instead of trying to create a representative hook
dynamically, just send static data to guarantee the hook will actually be
tested.

Closes #37067
2017-08-27 15:50:20 -07:00

17 lines
343 B
Ruby

module TestHooks
class SystemService < TestHooks::BaseService
private
def push_events_data
Gitlab::DataBuilder::Push.sample_data
end
def tag_push_events_data
Gitlab::DataBuilder::Push.sample_data
end
def repository_update_events_data
Gitlab::DataBuilder::Repository.sample_data
end
end
end