debian-mirror-gitlab/spec/factories/commit_signature/x509_commit_signature.rb

11 lines
277 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
FactoryBot.define do
2022-01-26 12:08:38 +05:30
factory :x509_commit_signature, class: 'CommitSignatures::X509CommitSignature' do
2020-03-13 15:44:24 +05:30
commit_sha { Digest::SHA1.hexdigest(SecureRandom.hex) }
project
x509_certificate
verification_status { :verified }
end
end