Commit 1b6b7873 authored by Stan Hu's avatar Stan Hu

Merge branch...

Merge branch 'philipcunningham-restrict-number-of-dast-records-created-during-seed-344012' into 'master'

Limit the number of dast_profile fixtures in seeds

See merge request gitlab-org/gitlab!76827
parents ac9655a2 de09b1f1
......@@ -10,14 +10,12 @@ class Gitlab::Seeder::DastProfiles
end
def seed!
3.times { create_profile }
profile = create_profile
2.times do
token = create_token(create_profile)
token = create_token(profile)
create_validation(token)
end
end
private
......@@ -47,7 +45,9 @@ class Gitlab::Seeder::DastProfiles
end
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?
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