debian-mirror-gitlab/spec/factories/gpg_keys.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
393 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2018-10-15 14:42:47 +05:30
require_relative '../support/helpers/gpg_helpers'
2017-09-10 17:25:29 +05:30
2018-03-17 18:26:18 +05:30
FactoryBot.define do
2017-09-10 17:25:29 +05:30
factory :gpg_key do
2018-12-05 23:21:45 +05:30
key { GpgHelpers::User1.public_key }
2017-09-10 17:25:29 +05:30
user
2018-03-17 18:26:18 +05:30
factory :gpg_key_with_subkeys do
2018-12-05 23:21:45 +05:30
key { GpgHelpers::User1.public_key_with_extra_signing_key }
2018-03-17 18:26:18 +05:30
end
2021-02-22 17:27:13 +05:30
factory :another_gpg_key do
key { GpgHelpers::User1.public_key2 }
user
end
2017-09-10 17:25:29 +05:30
end
end