2017-09-10 17:25:29 +05:30
|
|
|
require_relative '../support/helpers/key_generator_helper'
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
FactoryGirl.define do
|
|
|
|
factory :key do
|
|
|
|
title
|
2017-09-10 17:25:29 +05:30
|
|
|
key { Spec::Support::Helpers::KeyGeneratorHelper.new(1024).generate + ' dummy@gitlab.com' }
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
factory :deploy_key, class: 'DeployKey'
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
factory :personal_key do
|
|
|
|
user
|
|
|
|
end
|
|
|
|
|
|
|
|
factory :another_key do
|
2017-09-10 17:25:29 +05:30
|
|
|
factory :another_deploy_key, class: 'DeployKey'
|
2016-06-02 11:05:42 +05:30
|
|
|
end
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
factory :write_access_key, class: 'DeployKey' do
|
|
|
|
can_push true
|
|
|
|
end
|
2016-06-02 11:05:42 +05:30
|
|
|
end
|
|
|
|
end
|