From 04669c0e5d7af7492ddb96f288fb71aa1fc05e3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mica=C3=ABl=20Bergeron?= Date: Thu, 22 Mar 2018 16:10:22 -0400 Subject: fix the api jobs spec from having EE specific tests --- spec/requests/api/jobs_spec.rb | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'spec/requests/api/jobs_spec.rb') 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 -- cgit v1.2.3