2018-03-17 18:26:18 +05:30
|
|
|
FactoryBot.define do
|
2016-06-02 11:05:42 +05:30
|
|
|
factory :project_hook do
|
2017-08-17 22:00:37 +05:30
|
|
|
url { generate(:url) }
|
|
|
|
enable_ssl_verification false
|
2017-09-10 17:25:29 +05:30
|
|
|
project
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
trait :token do
|
|
|
|
token { SecureRandom.hex(10) }
|
|
|
|
end
|
2016-09-13 17:45:13 +05:30
|
|
|
|
|
|
|
trait :all_events_enabled do
|
|
|
|
push_events true
|
|
|
|
merge_requests_events true
|
|
|
|
tag_push_events true
|
|
|
|
issues_events true
|
2017-08-17 22:00:37 +05:30
|
|
|
confidential_issues_events true
|
2016-09-13 17:45:13 +05:30
|
|
|
note_events true
|
2018-04-05 14:03:07 +05:30
|
|
|
confidential_note_events true
|
2017-09-10 17:25:29 +05:30
|
|
|
job_events true
|
2016-09-13 17:45:13 +05:30
|
|
|
pipeline_events true
|
2016-09-29 09:46:39 +05:30
|
|
|
wiki_page_events true
|
2016-09-13 17:45:13 +05:30
|
|
|
end
|
2016-06-02 11:05:42 +05:30
|
|
|
end
|
|
|
|
end
|