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
7895126c
Commit
7895126c
authored
Sep 22, 2020
by
Mathieu Parent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add route for Debian package uploads
See
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/42670
parent
3c48c079
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
changelogs/unreleased/debian_route.yml
changelogs/unreleased/debian_route.yml
+5
-0
internal/upstream/routes.go
internal/upstream/routes.go
+3
-0
upload_test.go
upload_test.go
+1
-0
No files found.
changelogs/unreleased/debian_route.yml
0 → 100644
View file @
7895126c
---
title
:
Add route for Debian package uploads
merge_request
:
610
author
:
Mathieu Parent
type
:
added
internal/upstream/routes.go
View file @
7895126c
...
...
@@ -251,6 +251,9 @@ func (u *upstream) configureRoutes() {
// PyPI Artifact Repository
u
.
route
(
"POST"
,
apiPattern
+
`v4/projects/[0-9]+/packages/pypi`
,
upload
.
Accelerate
(
api
,
signingProxy
,
preparers
.
packages
)),
// Debian Artifact Repository
u
.
route
(
"PUT"
,
apiPattern
+
`v4/projects/[0-9]+/-/packages/debian/incoming/`
,
upload
.
BodyUploader
(
api
,
signingProxy
,
preparers
.
packages
)),
// 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 @
7895126c
...
...
@@ -358,6 +358,7 @@ func TestPackageFilesUpload(t *testing.T) {
"/api/v4/projects/2412/packages/conan/v1/files"
,
"/api/v4/projects/2412/packages/maven/v1/files"
,
"/api/v4/projects/2412/packages/generic/mypackage/0.0.1/myfile.tar.gz"
,
"/api/v4/projects/2412/-/packages/debian/incoming/libsample0_1.2.3~alpha2-1_amd64.deb"
,
}
for
_
,
r
:=
range
routes
{
...
...
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