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
1069c45b
Commit
1069c45b
authored
Mar 11, 2020
by
David Fernandez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a single package for the whole test suite
parent
42455972
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
ee/spec/requests/api/npm_packages_spec.rb
ee/spec/requests/api/npm_packages_spec.rb
+1
-3
No files found.
ee/spec/requests/api/npm_packages_spec.rb
View file @
1069c45b
...
...
@@ -6,6 +6,7 @@ describe API::NpmPackages do
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:group
)
{
create
(
:group
)
}
let_it_be
(
:project
,
reload:
true
)
{
create
(
:project
,
:public
,
namespace:
group
)
}
let_it_be
(
:package
)
{
create
(
:npm_package
,
project:
project
)
}
let_it_be
(
:token
)
{
create
(
:oauth_access_token
,
scopes:
'api'
,
resource_owner:
user
)
}
let_it_be
(
:personal_access_token
)
{
create
(
:personal_access_token
,
user:
user
)
}
let_it_be
(
:job
)
{
create
(
:ci_build
,
user:
user
)
}
...
...
@@ -36,7 +37,6 @@ describe API::NpmPackages do
end
describe
'GET /api/v4/packages/npm/*package_name'
do
let_it_be
(
:package
)
{
create
(
:npm_package
,
project:
project
)
}
let_it_be
(
:package_dependency_link1
)
{
create
(
:packages_dependency_link
,
package:
package
,
dependency_type: :dependencies
)
}
let_it_be
(
:package_dependency_link2
)
{
create
(
:packages_dependency_link
,
package:
package
,
dependency_type: :devDependencies
)
}
let_it_be
(
:package_dependency_link3
)
{
create
(
:packages_dependency_link
,
package:
package
,
dependency_type: :bundleDependencies
)
}
...
...
@@ -162,7 +162,6 @@ describe API::NpmPackages do
end
describe
'GET /api/v4/projects/:id/packages/npm/*package_name/-/*file_name'
do
let_it_be
(
:package
)
{
create
(
:npm_package
,
project:
project
)
}
let_it_be
(
:package_file
)
{
package
.
package_files
.
first
}
shared_examples
'a package file that requires auth'
do
...
...
@@ -398,7 +397,6 @@ describe API::NpmPackages do
end
describe
'GET /api/v4/packages/npm/-/package/*package_name/dist-tags'
do
let_it_be
(
:package
)
{
create
(
:npm_package
,
project:
project
)
}
let_it_be
(
:package_tag1
)
{
create
(
:packages_tag
,
package:
package
)
}
let_it_be
(
:package_tag2
)
{
create
(
:packages_tag
,
package:
package
)
}
...
...
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