fix the api jobs spec from having EE specific tests
This commit is contained in:
parent
b08a1cd2c4
commit
04669c0e5d
1 changed files with 0 additions and 23 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue