2018-12-06 04:42:55 -05:00
|
|
|
require './spec/support/sidekiq'
|
|
|
|
|
|
|
|
Sidekiq::Testing.inline! do
|
|
|
|
Gitlab::Seeder.quiet do
|
|
|
|
User.all.sample(10).each do |user|
|
|
|
|
source_project = Project.public_only.sample
|
2018-12-25 19:40:19 -05:00
|
|
|
return unless source_project
|
|
|
|
|
2018-12-06 04:42:55 -05:00
|
|
|
fork_project = Projects::ForkService.new(source_project, user, namespace: user.namespace).execute
|
|
|
|
|
|
|
|
if fork_project.valid?
|
|
|
|
puts '.'
|
|
|
|
else
|
|
|
|
puts 'F'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|