diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-16 00:08:56 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-16 00:08:56 +0000 |
commit | 3682a3a317e423498bfe56c38d21c6381b8ad04b (patch) | |
tree | 890d76d74b5b64f8d0973b9da1bdd3b4f6d36705 /spec/requests/api/pypi_packages_spec.rb | |
parent | c083f926c5714ee4dcbb3ae497b14d4cb31aa794 (diff) | |
download | gitlab-ce-3682a3a317e423498bfe56c38d21c6381b8ad04b.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/api/pypi_packages_spec.rb')
-rw-r--r-- | spec/requests/api/pypi_packages_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/requests/api/pypi_packages_spec.rb b/spec/requests/api/pypi_packages_spec.rb index de5dea449f8..72a470dca4b 100644 --- a/spec/requests/api/pypi_packages_spec.rb +++ b/spec/requests/api/pypi_packages_spec.rb @@ -57,6 +57,16 @@ RSpec.describe API::PypiPackages do end end + context 'with a normalized package name' do + let_it_be(:package) { create(:pypi_package, project: project, name: 'my.package') } + let(:url) { "/projects/#{project.id}/packages/pypi/simple/my-package" } + let(:headers) { basic_auth_header(user.username, personal_access_token.token) } + + subject { get api(url), headers: headers } + + it_behaves_like 'PyPI package versions', :developer, :success + end + it_behaves_like 'deploy token for package GET requests' it_behaves_like 'job token for package GET requests' |