Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicaël Bergeron <mbergeron@gitlab.com>2018-03-22 23:10:22 +0300
committerMicaël Bergeron <mbergeron@gitlab.com>2018-03-22 23:12:53 +0300
commit04669c0e5d7af7492ddb96f288fb71aa1fc05e3f (patch)
treec7a878eff25e827f2663e81d40990dc9c9a4eb15 /spec/requests/api/jobs_spec.rb
parentb08a1cd2c406919491f8a91e51aa0034762df14e (diff)
fix the api jobs spec from having EE specific tests
Diffstat (limited to 'spec/requests/api/jobs_spec.rb')
-rw-r--r--spec/requests/api/jobs_spec.rb23
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