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) }
|
2017-04-20 04:31:37 -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
|
2016-08-12 16:09:58 -04:00
|
|
|
push_events true
|
|
|
|
merge_requests_events true
|
|
|
|
tag_push_events true
|
|
|
|
issues_events true
|
2017-04-20 04:31:37 -04:00
|
|
|
confidential_issues_events true
|
2016-08-12 16:09:58 -04:00
|
|
|
note_events true
|
2018-04-03 07:00:33 -04:00
|
|
|
confidential_note_events true
|
2017-05-15 11:11:45 -04:00
|
|
|
job_events true
|
2016-08-12 16:09:58 -04:00
|
|
|
pipeline_events true
|
2016-08-23 14:54:44 -04:00
|
|
|
wiki_page_events true
|
2016-08-12 04:48:47 -04:00
|
|
|
end
|
2016-02-16 22:55:24 -05:00
|
|
|
end
|
|
|
|
end
|