2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
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) }
|
2019-12-21 20:55:43 +05:30
|
|
|
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
|
2019-12-21 20:55:43 +05:30
|
|
|
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 }
|
2016-09-13 17:45:13 +05:30
|
|
|
end
|
2016-06-02 11:05:42 +05:30
|
|
|
end
|
|
|
|
end
|