2019-12-14 10:07:56 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
2020-01-28 10:08:36 -05:00
|
|
|
factory :serverless_domain_cluster, class: '::Serverless::DomainCluster' do
|
2020-10-23 02:08:51 -04:00
|
|
|
pages_domain { association(:pages_domain) }
|
|
|
|
knative { association(:clusters_applications_knative) }
|
|
|
|
creator { association(:user) }
|
2020-02-05 04:08:43 -05:00
|
|
|
|
|
|
|
certificate do
|
2020-03-16 20:09:12 -04:00
|
|
|
File.read(Rails.root.join('spec/fixtures/', 'ssl_certificate.pem'))
|
2020-02-05 04:08:43 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
key do
|
2020-03-16 20:09:12 -04:00
|
|
|
File.read(Rails.root.join('spec/fixtures/', 'ssl_key.pem'))
|
2020-02-05 04:08:43 -05:00
|
|
|
end
|
2019-12-14 10:07:56 -05:00
|
|
|
end
|
|
|
|
end
|