2020-01-01 13:55:28 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
2020-03-13 15:44:24 +05:30
|
|
|
factory :serverless_domain_cluster, class: '::Serverless::DomainCluster' do
|
2020-01-01 13:55:28 +05:30
|
|
|
pages_domain { create(:pages_domain) }
|
|
|
|
knative { create(:clusters_applications_knative) }
|
|
|
|
creator { create(:user) }
|
2020-03-13 15:44:24 +05:30
|
|
|
|
|
|
|
certificate do
|
2020-03-28 13:19:24 +05:30
|
|
|
File.read(Rails.root.join('spec/fixtures/', 'ssl_certificate.pem'))
|
2020-03-13 15:44:24 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
key do
|
2020-03-28 13:19:24 +05:30
|
|
|
File.read(Rails.root.join('spec/fixtures/', 'ssl_key.pem'))
|
2020-03-13 15:44:24 +05:30
|
|
|
end
|
2020-01-01 13:55:28 +05:30
|
|
|
end
|
|
|
|
end
|