diff options
Diffstat (limited to 'spec/requests/api/nuget_project_packages_spec.rb')
-rw-r--r-- | spec/requests/api/nuget_project_packages_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/requests/api/nuget_project_packages_spec.rb b/spec/requests/api/nuget_project_packages_spec.rb index 0277aa73220..54fe0b985df 100644 --- a/spec/requests/api/nuget_project_packages_spec.rb +++ b/spec/requests/api/nuget_project_packages_spec.rb @@ -188,6 +188,10 @@ RSpec.describe API::NugetProjectPackages do it_behaves_like 'deploy token for package uploads' + it_behaves_like 'job token for package uploads', authorize_endpoint: true do + let_it_be(:job) { create(:ci_build, :running, user: user) } + end + it_behaves_like 'rejects nuget access with unknown target id' it_behaves_like 'rejects nuget access with invalid target id' @@ -251,6 +255,10 @@ RSpec.describe API::NugetProjectPackages do it_behaves_like 'deploy token for package uploads' + it_behaves_like 'job token for package uploads' do + let_it_be(:job) { create(:ci_build, :running, user: user) } + end + it_behaves_like 'rejects nuget access with unknown target id' it_behaves_like 'rejects nuget access with invalid target id' |