debian-mirror-gitlab/spec/factories/packages/debian/distribution_key.rb
2021-10-27 15:23:28 +05:30

16 lines
611 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :debian_project_distribution_key, class: 'Packages::Debian::ProjectDistributionKey' do
distribution { association(:debian_project_distribution) }
private_key { File.read(Rails.root.join('spec/fixtures/', 'private_key.asc')) }
passphrase { '12345' }
public_key { File.read(Rails.root.join('spec/fixtures/', 'public_key.asc')) }
fingerprint { '12345' }
factory :debian_group_distribution_key, class: 'Packages::Debian::GroupDistributionKey' do
distribution { association(:debian_group_distribution) }
end
end
end