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
c98be905
Commit
c98be905
authored
Apr 19, 2021
by
Mathieu Parent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Debian group level endpoints urls
See
https://gitlab.com/gitlab-org/gitlab/-/issues/326805
parent
643bf74c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
lib/api/debian_group_packages.rb
lib/api/debian_group_packages.rb
+1
-1
spec/requests/api/debian_group_packages_spec.rb
spec/requests/api/debian_group_packages_spec.rb
+10
-10
No files found.
lib/api/debian_group_packages.rb
View file @
c98be905
...
...
@@ -15,7 +15,7 @@ module API
authorize_read_package!
(
user_group
)
end
namespace
':id/packages/debian'
do
namespace
':id/
-/
packages/debian'
do
include
DebianPackageEndpoints
end
end
...
...
spec/requests/api/debian_group_packages_spec.rb
View file @
c98be905
...
...
@@ -6,32 +6,32 @@ RSpec.describe API::DebianGroupPackages do
include
WorkhorseHelpers
include_context
'Debian repository shared context'
,
:group
do
describe
'GET groups/:id/packages/debian/dists/*distribution/Release.gpg'
do
let
(
:url
)
{
"/groups/
#{
group
.
id
}
/packages/debian/dists/
#{
distribution
}
/Release.gpg"
}
describe
'GET groups/:id/
-/
packages/debian/dists/*distribution/Release.gpg'
do
let
(
:url
)
{
"/groups/
#{
group
.
id
}
/
-/
packages/debian/dists/
#{
distribution
}
/Release.gpg"
}
it_behaves_like
'Debian group repository GET endpoint'
,
:not_found
,
nil
end
describe
'GET groups/:id/packages/debian/dists/*distribution/Release'
do
let
(
:url
)
{
"/groups/
#{
group
.
id
}
/packages/debian/dists/
#{
distribution
}
/Release"
}
describe
'GET groups/:id/
-/
packages/debian/dists/*distribution/Release'
do
let
(
:url
)
{
"/groups/
#{
group
.
id
}
/
-/
packages/debian/dists/
#{
distribution
}
/Release"
}
it_behaves_like
'Debian group repository GET endpoint'
,
:success
,
'TODO Release'
end
describe
'GET groups/:id/packages/debian/dists/*distribution/InRelease'
do
let
(
:url
)
{
"/groups/
#{
group
.
id
}
/packages/debian/dists/
#{
distribution
}
/InRelease"
}
describe
'GET groups/:id/
-/
packages/debian/dists/*distribution/InRelease'
do
let
(
:url
)
{
"/groups/
#{
group
.
id
}
/
-/
packages/debian/dists/
#{
distribution
}
/InRelease"
}
it_behaves_like
'Debian group repository GET endpoint'
,
:not_found
,
nil
end
describe
'GET groups/:id/packages/debian/dists/*distribution/:component/binary-:architecture/Packages'
do
let
(
:url
)
{
"/groups/
#{
group
.
id
}
/packages/debian/dists/
#{
distribution
}
/
#{
component
}
/binary-
#{
architecture
}
/Packages"
}
describe
'GET groups/:id/
-/
packages/debian/dists/*distribution/:component/binary-:architecture/Packages'
do
let
(
:url
)
{
"/groups/
#{
group
.
id
}
/
-/
packages/debian/dists/
#{
distribution
}
/
#{
component
}
/binary-
#{
architecture
}
/Packages"
}
it_behaves_like
'Debian group repository GET endpoint'
,
:success
,
'TODO Packages'
end
describe
'GET groups/:id/packages/debian/pool/:component/:letter/:source_package/:file_name'
do
let
(
:url
)
{
"/groups/
#{
group
.
id
}
/packages/debian/pool/
#{
component
}
/
#{
letter
}
/
#{
source_package
}
/
#{
package_name
}
_
#{
package_version
}
_
#{
architecture
}
.deb"
}
describe
'GET groups/:id/
-/
packages/debian/pool/:component/:letter/:source_package/:file_name'
do
let
(
:url
)
{
"/groups/
#{
group
.
id
}
/
-/
packages/debian/pool/
#{
component
}
/
#{
letter
}
/
#{
source_package
}
/
#{
package_name
}
_
#{
package_version
}
_
#{
architecture
}
.deb"
}
it_behaves_like
'Debian group repository GET endpoint'
,
:success
,
'TODO File'
end
...
...
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