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
5c19d848
Commit
5c19d848
authored
Nov 19, 2019
by
Hayley Swimelar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add NuGet route for package uploads
parent
62409786
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
internal/upstream/routes.go
internal/upstream/routes.go
+3
-0
upload_test.go
upload_test.go
+8
-1
No files found.
internal/upstream/routes.go
View file @
5c19d848
...
...
@@ -207,6 +207,9 @@ func (u *upstream) configureRoutes() {
// Conan Artifact Repository
route
(
"PUT"
,
apiPattern
+
`v4/packages/conan/`
,
filestore
.
BodyUploader
(
api
,
proxy
,
nil
)),
// NuGet Artifact Repository
route
(
"PUT"
,
apiPattern
+
`v4/projects/[0-9]+/packages/nuget/`
,
filestore
.
BodyUploader
(
api
,
proxy
,
nil
)),
// We are porting API to disk acceleration
// we need to declare each routes until we have fixed all the routes on the rails codebase.
// Overall status can be seen at https://gitlab.com/groups/gitlab-org/-/epics/1802#current-status
...
...
upload_test.go
View file @
5c19d848
...
...
@@ -328,5 +328,12 @@ func testPackageFileUpload(t *testing.T, resource string) {
}
func
TestPackageFilesUpload
(
t
*
testing
.
T
)
{
testPackageFileUpload
(
t
,
`/api/v4/packages/conan/v1/files`
)
routes
:=
[]
string
{
"/api/v4/packages/conan/v1/files"
,
"/api/v4/projects/9001/packages/nuget/v1/files"
,
}
for
_
,
r
:=
range
routes
{
testPackageFileUpload
(
t
,
r
)
}
}
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