debian-mirror-gitlab/spec/factories/serverless/domain_cluster.rb

18 lines
471 B
Ruby
Raw Normal View History

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
2021-01-29 00:20:46 +05:30
pages_domain { association(:pages_domain) }
knative { association(:clusters_applications_knative) }
creator { association(: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