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
8d888d73
Commit
8d888d73
authored
Aug 14, 2020
by
Steve Abrams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add project level route for conan package uploads
parent
b5a8ccb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
changelogs/unreleased/11679-conan-project-level-route.yml
changelogs/unreleased/11679-conan-project-level-route.yml
+5
-0
internal/upstream/routes.go
internal/upstream/routes.go
+1
-0
upload_test.go
upload_test.go
+1
-0
No files found.
changelogs/unreleased/11679-conan-project-level-route.yml
0 → 100644
View file @
8d888d73
---
title
:
Add project level route for conan package uploads
merge_request
:
558
author
:
type
:
added
internal/upstream/routes.go
View file @
8d888d73
...
...
@@ -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
)),
...
...
upload_test.go
View file @
8d888d73
...
...
@@ -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"
,
}
...
...
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