2019-07-25 01:11:48 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-12-13 19:13:44 -05:00
|
|
|
FactoryBot.define do
|
2016-02-16 22:55:24 -05:00
|
|
|
factory :project_hook do
|
2017-03-23 09:08:39 -04:00
|
|
|
url { generate(:url) }
|
2019-10-01 20:06:26 -04:00
|
|
|
enable_ssl_verification { false }
|
2017-08-02 15:55:11 -04:00
|
|
|
project
|
2016-04-27 03:24:49 -04:00
|
|
|
|
|
|
|
trait :token do
|
|
|
|
token { SecureRandom.hex(10) }
|
|
|
|
end
|
2016-08-12 04:48:47 -04:00
|
|
|
|
|
|
|
trait :all_events_enabled do
|
2019-10-01 20:06:26 -04: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 17:10:09 -04:00
|
|
|
deployment_events { true }
|
2020-10-28 11:08:49 -04:00
|
|
|
feature_flag_events { true }
|
2020-11-06 19:08:58 -05:00
|
|
|
releases_events { true }
|
2016-08-12 04:48:47 -04:00
|
|
|
end
|
2016-02-16 22:55:24 -05:00
|
|
|
end
|
|
|
|
end
|