Commit 5e6736a7 authored by Nick Thomas's avatar Nick Thomas

Merge branch '11679-conan-project-level-route' into 'master'

Add project level route for conan package uploads

See merge request gitlab-org/gitlab-workhorse!558
parents 84a80aa0 8d888d73
---
title: Add project level route for conan package uploads
merge_request: 558
author:
type: added
......@@ -219,6 +219,7 @@ func (u *upstream) configureRoutes() {
// Conan Artifact Repository
route("PUT", apiPattern+`v4/packages/conan/`, upload.BodyUploader(api, signingProxy, preparers.packages)),
route("PUT", apiPattern+`v4/projects/[0-9]+/packages/conan/`, upload.BodyUploader(api, signingProxy, preparers.packages)),
// NuGet Artifact Repository
route("PUT", apiPattern+`v4/projects/[0-9]+/packages/nuget/`, upload.Accelerate(api, signingProxy, preparers.packages)),
......
......@@ -369,6 +369,7 @@ func testPackageFileUpload(t *testing.T, resource string) {
func TestPackageFilesUpload(t *testing.T) {
routes := []string{
"/api/v4/packages/conan/v1/files",
"/api/v4/projects/2412/packages/conan/v1/files",
"/api/v4/projects/2412/packages/maven/v1/files",
}
......
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