2019-07-25 05:11:48 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-12-14 00:13:44 +00:00
|
|
|
FactoryBot.define do
|
2016-02-17 03:55:24 +00:00
|
|
|
factory :project_hook do
|
2017-03-23 13:08:39 +00:00
|
|
|
url { generate(:url) }
|
2019-10-02 00:06:26 +00:00
|
|
|
enable_ssl_verification { false }
|
2017-08-02 19:55:11 +00:00
|
|
|
project
|
2016-04-27 07:24:49 +00:00
|
|
|
|
|
|
|
trait :token do
|
|
|
|
token { SecureRandom.hex(10) }
|
|
|
|
end
|
2016-08-12 08:48:47 +00:00
|
|
|
|
|
|
|
trait :all_events_enabled do
|
2019-10-02 00:06:26 +00:00
|
|
|
push_events { true }
|
|
|
|
merge_requests_events { true }
|
|
|
|
tag_push_events { true }
|
|
|
|
issues_events { true }
|
|
|
|
confidential_issues_events { true }
|
|
|
|
note_events { true }
|
|
|
|
confidential_note_events { true }
|
|
|
|
job_events { true }
|
|
|
|
pipeline_events { true }
|
|
|
|
wiki_page_events { true }
|
2020-08-11 21:10:09 +00:00
|
|
|
deployment_events { true }
|
2016-08-12 08:48:47 +00:00
|
|
|
end
|
2016-02-17 03:55:24 +00:00
|
|
|
end
|
|
|
|
end
|