Commit 74f0fb96 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'npm-pkg-license-cleanup' into 'master'

Cleanup npm license references

See merge request gitlab-org/gitlab!39022
parents a17fc062 0b8b2897
...@@ -407,7 +407,6 @@ RSpec.describe API::NpmPackages do ...@@ -407,7 +407,6 @@ RSpec.describe API::NpmPackages do
subject { get api(url) } subject { get api(url) }
context 'without the need for a license' do
context 'with public project' do context 'with public project' do
context 'with authenticated user' do context 'with authenticated user' do
subject { get api(url, personal_access_token: personal_access_token) } subject { get api(url, personal_access_token: personal_access_token) }
...@@ -442,7 +441,6 @@ RSpec.describe API::NpmPackages do ...@@ -442,7 +441,6 @@ RSpec.describe API::NpmPackages do
end end
end end
end end
end
describe 'PUT /api/v4/packages/npm/-/package/*package_name/dist-tags/:tag' do describe 'PUT /api/v4/packages/npm/-/package/*package_name/dist-tags/:tag' do
let_it_be(:tag_name) { 'test' } let_it_be(:tag_name) { 'test' }
...@@ -453,7 +451,6 @@ RSpec.describe API::NpmPackages do ...@@ -453,7 +451,6 @@ RSpec.describe API::NpmPackages do
subject { put api(url), env: { 'api.request.body': version } } subject { put api(url), env: { 'api.request.body': version } }
context 'without the need for a license' do
context 'with public project' do context 'with public project' do
context 'with authenticated user' do context 'with authenticated user' do
subject { put api(url, personal_access_token: personal_access_token), env: { 'api.request.body': version } } subject { put api(url, personal_access_token: personal_access_token), env: { 'api.request.body': version } }
...@@ -488,7 +485,6 @@ RSpec.describe API::NpmPackages do ...@@ -488,7 +485,6 @@ RSpec.describe API::NpmPackages do
end end
end end
end end
end
describe 'DELETE /api/v4/packages/npm/-/package/*package_name/dist-tags/:tag' do describe 'DELETE /api/v4/packages/npm/-/package/*package_name/dist-tags/:tag' do
let_it_be(:package_tag) { create(:packages_tag, package: package) } let_it_be(:package_tag) { create(:packages_tag, package: package) }
...@@ -499,7 +495,6 @@ RSpec.describe API::NpmPackages do ...@@ -499,7 +495,6 @@ RSpec.describe API::NpmPackages do
subject { delete api(url) } subject { delete api(url) }
context 'without the need for a license' do
context 'with public project' do context 'with public project' do
context 'with authenticated user' do context 'with authenticated user' do
subject { delete api(url, personal_access_token: personal_access_token) } subject { delete api(url, personal_access_token: personal_access_token) }
...@@ -534,7 +529,6 @@ RSpec.describe API::NpmPackages do ...@@ -534,7 +529,6 @@ RSpec.describe API::NpmPackages do
end end
end end
end end
end
def expect_a_valid_package_response def expect_a_valid_package_response
expect(response).to have_gitlab_http_status(:ok) expect(response).to have_gitlab_http_status(:ok)
......
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