Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
de09b1f1
Commit
de09b1f1
authored
Dec 16, 2021
by
Philip Cunningham
Committed by
Stan Hu
Dec 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Limit the number of dast_profile fixtures in seeds
parent
b9e80d44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ee/db/fixtures/development/21_dast_profiles.rb
ee/db/fixtures/development/21_dast_profiles.rb
+6
-6
No files found.
ee/db/fixtures/development/21_dast_profiles.rb
View file @
de09b1f1
...
...
@@ -10,13 +10,11 @@ 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
create_validation
(
token
)
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment