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
4bb26ab3
Commit
4bb26ab3
authored
May 04, 2021
by
Matt Kasa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add accelerated upload route for Terraform Modules
Closes
https://gitlab.com/gitlab-org/gitlab/-/issues/329955
parent
023929fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
workhorse/internal/upstream/routes.go
workhorse/internal/upstream/routes.go
+3
-0
workhorse/upload_test.go
workhorse/upload_test.go
+1
-0
No files found.
workhorse/internal/upstream/routes.go
View file @
4bb26ab3
...
...
@@ -283,6 +283,9 @@ func configureRoutes(u *upstream) {
// Gem Artifact Repository
u
.
route
(
"POST"
,
apiProjectPattern
+
`packages/rubygems/`
,
upload
.
BodyUploader
(
api
,
signingProxy
,
preparers
.
packages
)),
// Terraform Module Package Repository
u
.
route
(
"PUT"
,
apiProjectPattern
+
`packages/terraform/modules/`
,
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
...
...
workhorse/upload_test.go
View file @
4bb26ab3
...
...
@@ -512,6 +512,7 @@ func TestPackageFilesUpload(t *testing.T) {
{
"PUT"
,
"/api/v4/projects/group%2Fproject/packages/generic/mypackage/0.0.1/myfile.tar.gz"
},
{
"PUT"
,
"/api/v4/projects/group%2Fproject/packages/debian/libsample0_1.2.3~alpha2-1_amd64.deb"
},
{
"POST"
,
"/api/v4/projects/group%2Fproject/packages/rubygems/api/v1/gems/sample.gem"
},
{
"PUT"
,
"/api/v4/projects/group%2Fproject/packages/terraform/modules/mymodule/mysystem/0.0.1/file"
},
}
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