Commit 3d150654 authored by David Fernandez's avatar David Fernandez

Merge branch 'debian_group_api_hyphen' into 'master'

Update Debian group level endpoints urls

See merge request gitlab-org/gitlab!59609
parents 0f1e36f4 c98be905
...@@ -15,7 +15,7 @@ module API ...@@ -15,7 +15,7 @@ module API
authorize_read_package!(user_group) authorize_read_package!(user_group)
end end
namespace ':id/packages/debian' do namespace ':id/-/packages/debian' do
include DebianPackageEndpoints include DebianPackageEndpoints
end end
end end
......
...@@ -6,32 +6,32 @@ RSpec.describe API::DebianGroupPackages do ...@@ -6,32 +6,32 @@ RSpec.describe API::DebianGroupPackages do
include WorkhorseHelpers include WorkhorseHelpers
include_context 'Debian repository shared context', :group do include_context 'Debian repository shared context', :group do
describe 'GET groups/:id/packages/debian/dists/*distribution/Release.gpg' do describe 'GET groups/:id/-/packages/debian/dists/*distribution/Release.gpg' do
let(:url) { "/groups/#{group.id}/packages/debian/dists/#{distribution}/Release.gpg" } let(:url) { "/groups/#{group.id}/-/packages/debian/dists/#{distribution}/Release.gpg" }
it_behaves_like 'Debian group repository GET endpoint', :not_found, nil it_behaves_like 'Debian group repository GET endpoint', :not_found, nil
end end
describe 'GET groups/:id/packages/debian/dists/*distribution/Release' do describe 'GET groups/:id/-/packages/debian/dists/*distribution/Release' do
let(:url) { "/groups/#{group.id}/packages/debian/dists/#{distribution}/Release" } let(:url) { "/groups/#{group.id}/-/packages/debian/dists/#{distribution}/Release" }
it_behaves_like 'Debian group repository GET endpoint', :success, 'TODO Release' it_behaves_like 'Debian group repository GET endpoint', :success, 'TODO Release'
end end
describe 'GET groups/:id/packages/debian/dists/*distribution/InRelease' do describe 'GET groups/:id/-/packages/debian/dists/*distribution/InRelease' do
let(:url) { "/groups/#{group.id}/packages/debian/dists/#{distribution}/InRelease" } let(:url) { "/groups/#{group.id}/-/packages/debian/dists/#{distribution}/InRelease" }
it_behaves_like 'Debian group repository GET endpoint', :not_found, nil it_behaves_like 'Debian group repository GET endpoint', :not_found, nil
end end
describe 'GET groups/:id/packages/debian/dists/*distribution/:component/binary-:architecture/Packages' do 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" } let(:url) { "/groups/#{group.id}/-/packages/debian/dists/#{distribution}/#{component}/binary-#{architecture}/Packages" }
it_behaves_like 'Debian group repository GET endpoint', :success, 'TODO Packages' it_behaves_like 'Debian group repository GET endpoint', :success, 'TODO Packages'
end end
describe 'GET groups/:id/packages/debian/pool/:component/:letter/:source_package/:file_name' do 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" } 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' it_behaves_like 'Debian group repository GET endpoint', :success, 'TODO File'
end end
......
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