diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-24 21:08:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-24 21:08:45 +0300 |
commit | 2ae564d6f59fc939bfdbb155d445efe97b34c1e1 (patch) | |
tree | 106ebc2021d84757ca03610747a60c8f47ac9fb0 /spec/factories | |
parent | 7308ec9d13fb69018200a40f287e76ef499ed47c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/keys.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/factories/keys.rb b/spec/factories/keys.rb index f6f06a99494..4bd41c1faa1 100644 --- a/spec/factories/keys.rb +++ b/spec/factories/keys.rb @@ -30,7 +30,15 @@ FactoryBot.define do key { SSHData::PrivateKey::RSA.generate(3072, unsafe_allow_small_key: true).public_key.openssh } end - factory :deploy_key, class: 'DeployKey' + factory :deploy_key, class: 'DeployKey' do + trait :private do + public { false } + end + + trait :public do + public { true } + end + end factory :group_deploy_key, class: 'GroupDeployKey' do user |