gitlab-org--gitlab-foss/spec/factories/services.rb

25 lines
484 B
Ruby
Raw Normal View History

FactoryGirl.define do
factory :service do
project factory: :empty_project
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
factory :jira_service do
project factory: :empty_project
active true
properties(
url: 'https://jira.example.com',
project_key: 'jira-key'
)
end
end