Commit 5ce3845f authored by Sean McGivern's avatar Sean McGivern

DRY up {jira,kubernets}_project factories

parent 9f612cc4
...@@ -189,29 +189,10 @@ FactoryGirl.define do ...@@ -189,29 +189,10 @@ FactoryGirl.define do
factory :jira_project, parent: :project do factory :jira_project, parent: :project do
has_external_issue_tracker true has_external_issue_tracker true
jira_service
after :create do |project|
project.create_jira_service(
active: true,
properties: {
title: 'JIRA tracker',
url: 'http://jira.example.net',
project_key: 'JIRA'
}
)
end
end end
factory :kubernetes_project, parent: :empty_project do factory :kubernetes_project, parent: :empty_project do
after :create do |project| kubernetes_service
project.create_kubernetes_service(
active: true,
properties: {
namespace: project.path,
api_url: 'https://kubernetes.example.com',
token: 'a' * 40,
}
)
end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment