Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
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-workhorse
Commits
33353759
Commit
33353759
authored
Mar 17, 2020
by
Daniel Croft
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added route for PyPI as well as test case.
parent
d7194f8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
internal/upstream/routes.go
internal/upstream/routes.go
+3
-0
upload_test.go
upload_test.go
+1
-0
No files found.
internal/upstream/routes.go
View file @
33353759
...
@@ -211,6 +211,9 @@ func (u *upstream) configureRoutes() {
...
@@ -211,6 +211,9 @@ func (u *upstream) configureRoutes() {
// NuGet Artifact Repository
// NuGet Artifact Repository
route
(
"PUT"
,
apiPattern
+
`v4/projects/[0-9]+/packages/nuget/`
,
upload
.
Accelerate
(
api
,
signingProxy
)),
route
(
"PUT"
,
apiPattern
+
`v4/projects/[0-9]+/packages/nuget/`
,
upload
.
Accelerate
(
api
,
signingProxy
)),
// PyPI Artifact Repository
route
(
"PUT"
,
apiPattern
+
`v4/projects/[0-9]+/packages/pypi/`
,
upload
.
Accelerate
(
api
,
signingProxy
)),
// We are porting API to disk acceleration
// We are porting API to disk acceleration
// we need to declare each routes until we have fixed all the routes on the rails codebase.
// 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
// Overall status can be seen at https://gitlab.com/groups/gitlab-org/-/epics/1802#current-status
...
...
upload_test.go
View file @
33353759
...
@@ -139,6 +139,7 @@ func TestAcceleratedUpload(t *testing.T) {
...
@@ -139,6 +139,7 @@ func TestAcceleratedUpload(t *testing.T) {
{
"POST"
,
`/api/v4/groups/import`
,
true
},
{
"POST"
,
`/api/v4/groups/import`
,
true
},
{
"POST"
,
`/api/v4/projects/import`
,
true
},
{
"POST"
,
`/api/v4/projects/import`
,
true
},
{
"POST"
,
`/import/gitlab_project`
,
true
},
{
"POST"
,
`/import/gitlab_project`
,
true
},
{
"PUT"
,
`/api/v4/projects/9001/packages/pypi/v1/files`
,
true
},
}
}
for
_
,
tt
:=
range
tests
{
for
_
,
tt
:=
range
tests
{
...
...
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