Commit 33353759 authored by Daniel Croft's avatar Daniel Croft

Added route for PyPI as well as test case.

parent d7194f8c
......@@ -211,6 +211,9 @@ func (u *upstream) configureRoutes() {
// NuGet Artifact Repository
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 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
......
......@@ -139,6 +139,7 @@ func TestAcceleratedUpload(t *testing.T) {
{"POST", `/api/v4/groups/import`, true},
{"POST", `/api/v4/projects/import`, true},
{"POST", `/import/gitlab_project`, true},
{"PUT", `/api/v4/projects/9001/packages/pypi/v1/files`, true},
}
for _, tt := range tests {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment