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
|
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({
|
|
|
|
namespace: 'somepath',
|
|
|
|
api_url: 'https://kubernetes.example.com',
|
|
|
|
token: 'a' * 40,
|
|
|
|
})
|
|
|
|
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
|
2016-02-16 22:55:24 -05:00
|
|
|
end
|