Commit de09b1f1 authored by Philip Cunningham's avatar Philip Cunningham Committed by Stan Hu

Limit the number of dast_profile fixtures in seeds

parent b9e80d44
...@@ -10,13 +10,11 @@ class Gitlab::Seeder::DastProfiles ...@@ -10,13 +10,11 @@ class Gitlab::Seeder::DastProfiles
end end
def seed! def seed!
3.times { create_profile } profile = create_profile
2.times do token = create_token(profile)
token = create_token(create_profile)
create_validation(token) create_validation(token)
end
end end
private private
...@@ -47,7 +45,9 @@ class Gitlab::Seeder::DastProfiles ...@@ -47,7 +45,9 @@ class Gitlab::Seeder::DastProfiles
end end
Gitlab::Seeder.quiet do Gitlab::Seeder.quiet do
Project.all.each do |project| user = User.first
user.projects.order(id: :desc).limit(3).each do |project|
next unless project.repo_exists? next unless project.repo_exists?
seeder = Gitlab::Seeder::DastProfiles.new(project) seeder = Gitlab::Seeder::DastProfiles.new(project)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment