diff options
Diffstat (limited to 'spec/requests/api/jobs_spec.rb')
-rw-r--r-- | spec/requests/api/jobs_spec.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/requests/api/jobs_spec.rb b/spec/requests/api/jobs_spec.rb index aa9a9918b8c..3ffdfdc0e9a 100644 --- a/spec/requests/api/jobs_spec.rb +++ b/spec/requests/api/jobs_spec.rb @@ -506,29 +506,6 @@ describe API::Jobs do it_behaves_like 'a valid file' end - - context 'when using job_token to authenticate' do - before do - pipeline.reload - pipeline.update(ref: 'master', - sha: project.commit('master').sha) - - get api("/projects/#{project.id}/jobs/artifacts/master/download"), job: job.name, job_token: job.token - end - - context 'when user is reporter' do - it_behaves_like 'a valid file' - end - - context 'when user is admin, but not member' do - let(:api_user) { create(:admin) } - let(:job) { create(:ci_build, :artifacts, pipeline: pipeline, user: api_user) } - - it 'does not allow to see that artfiact is present' do - expect(response).to have_gitlab_http_status(404) - end - end - end end end |