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
|
2019-12-14 10:07:56 -05:00
|
|
|
pages_domain { create(:pages_domain) }
|
|
|
|
knative { create(:clusters_applications_knative) }
|
|
|
|
creator { create(: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
|