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
0425cbf5
Commit
0425cbf5
authored
Dec 26, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove npm packages fixtures for another MR
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
7382ba03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
68 deletions
+0
-68
config/initializers/seed_fu_fixtures.rb
config/initializers/seed_fu_fixtures.rb
+0
-3
ee/db/fixtures/development/25_packages.rb
ee/db/fixtures/development/25_packages.rb
+0
-65
No files found.
config/initializers/seed_fu_fixtures.rb
deleted
100644 → 0
View file @
7382ba03
# frozen_string_literal: true
# Include EE-only fixtures into seed_fu
SeedFu
.
fixture_paths
.
push
(
"
#{
Rails
.
root
}
/ee/db/fixtures/
#{
Rails
.
env
}
"
)
ee/db/fixtures/development/25_packages.rb
deleted
100644 → 0
View file @
7382ba03
# frozen_string_literal: true
require
'./spec/support/sidekiq'
Sidekiq
::
Testing
.
inline!
do
Gitlab
::
Seeder
.
quiet
do
user
=
User
.
first
group_path
=
'foo'
project_path
=
'bar'
full_path
=
"
#{
group_path
}
/
#{
project_path
}
"
package_name
=
"@
#{
full_path
}
"
group
=
Group
.
find_by
(
path:
group_path
)
unless
group
group
=
Group
.
new
(
name:
group_path
,
path:
group_path
)
group
.
description
=
FFaker
::
Lorem
.
sentence
group
.
save
group
.
add_owner
(
user
)
end
project
=
Project
.
find_by_full_path
(
full_path
)
unless
project
params
=
{
namespace_id:
group
.
id
,
name:
project_path
,
description:
FFaker
::
Lorem
.
sentence
,
visibility_level:
Gitlab
::
VisibilityLevel
::
PRIVATE
,
skip_disk_validation:
true
}
project
=
Projects
::
CreateService
.
new
(
user
,
params
).
execute
end
(
1
..
10
).
each
do
|
patch
|
version
=
"1.0.
#{
patch
}
"
params
=
{
name:
package_name
,
versions:
{
version
=>
{
dist:
{
shasum:
'f572d396fae9206628714fb2ce00f72e94f2258f'
}
}
},
'_attachments'
=>
{
"
#{
package_name
}
-
#{
version
}
.tgz"
=>
{
'data'
=>
'aGVsbG8K'
,
'length'
=>
8
}
}
}
::
Packages
::
CreateNpmPackageService
.
new
(
project
,
user
,
params
).
execute
print
'.'
end
end
end
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