2016-02-16 22:55:24 -05:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :service do
|
2017-01-24 20:30:56 -05:00
|
|
|
project factory: :empty_project
|
2017-04-25 11:48:12 -04:00
|
|
|
type 'Service'
|
|
|
|
end
|
|
|
|
|
|
|
|
factory :custom_issue_tracker_service, class: CustomIssueTrackerService do
|
|
|
|
project factory: :empty_project
|
|
|
|
type 'CustomIssueTrackerService'
|
|
|
|
category 'issue_tracker'
|
|
|
|
active true
|
|
|
|
properties(
|
|
|
|
project_url: 'https://project.url.com',
|
|
|
|
issues_url: 'https://issues.url.com',
|
|
|
|
new_issue_url: 'https://newissue.url.com'
|
|
|
|
)
|
2016-02-16 22:55:24 -05:00
|
|
|
end
|
2017-02-07 10:59:38 -05:00
|
|
|
|
|
|
|
factory :kubernetes_service do
|
|
|
|
project factory: :empty_project
|
|
|
|
active true
|
|
|
|
properties({
|
|
|
|
api_url: 'https://kubernetes.example.com',
|
2017-05-03 07:22:03 -04:00
|
|
|
token: 'a' * 40
|
2017-02-07 10:59:38 -05:00
|
|
|
})
|
|
|
|
end
|
2017-03-03 09:25:52 -05:00
|
|
|
|
2017-05-31 07:40:03 -04:00
|
|
|
factory :prometheus_service do
|
|
|
|
project factory: :empty_project
|
|
|
|
active true
|
|
|
|
properties({
|
|
|
|
api_url: 'https://prometheus.example.com/'
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2017-03-03 09:25:52 -05:00
|
|
|
factory :jira_service do
|
|
|
|
project factory: :empty_project
|
|
|
|
active true
|
|
|
|
properties(
|
|
|
|
url: 'https://jira.example.com',
|
|
|
|
project_key: 'jira-key'
|
|
|
|
)
|
|
|
|
end
|
2017-05-22 06:07:12 -04:00
|
|
|
|
|
|
|
factory :hipchat_service do
|
|
|
|
project factory: :empty_project
|
|
|
|
type 'HipchatService'
|
|
|
|
token 'test_token'
|
|
|
|
end
|
2016-02-16 22:55:24 -05:00
|
|
|
end
|