Commit 472cb9ee authored by Kamil Trzcinski's avatar Kamil Trzcinski

Add missing :archive to :ci_job_artifact

parent e21c0dee
......@@ -324,7 +324,7 @@ describe API::Jobs do
context 'when artifacts are stored remotely' do
let(:job) { create(:ci_build, pipeline: pipeline) }
let!(:artifact) { create(:ci_job_artifact, :remote_store, job: job) }
let!(:artifact) { create(:ci_job_artifact, :archive, :remote_store, job: job) }
before do
job.reload
......@@ -453,7 +453,7 @@ describe API::Jobs do
context 'when artifacts are stored remotely' do
let(:job) { create(:ci_build, pipeline: pipeline, user: api_user) }
let!(:artifact) { create(:ci_job_artifact, :remote_store, job: job) }
let!(:artifact) { create(:ci_job_artifact, :archive, :remote_store, job: job) }
before do
job.reload
......
......@@ -1166,7 +1166,7 @@ describe API::Runner do
let(:store) { JobArtifactUploader::LOCAL_STORE }
before do
create(:ci_job_artifact, file_store: store, job: job)
create(:ci_job_artifact, :archive, file_store: store, job: job)
download_artifact
end
......
......@@ -216,7 +216,7 @@ describe API::V3::Builds do
context 'when artifacts are stored remotely' do
let(:build) { create(:ci_build, pipeline: pipeline) }
let!(:artifact) { create(:ci_job_artifact, :remote_store, job: build) }
let!(:artifact) { create(:ci_job_artifact, :archive, :remote_store, job: build) }
it 'returns location redirect' do
get v3_api("/projects/#{project.id}/builds/#{build.id}/artifacts", api_user)
......@@ -313,7 +313,7 @@ describe API::V3::Builds do
context 'when artifacts are stored remotely' do
let(:build) { create(:ci_build, pipeline: pipeline) }
let!(:artifact) { create(:ci_job_artifact, :remote_store, job: build) }
let!(:artifact) { create(:ci_job_artifact, :archive, :remote_store, job: build) }
before do
build.reload
......
......@@ -69,7 +69,7 @@ describe 'gitlab:artifacts namespace rake task' do
end
context 'job artifacts' do
let!(:artifact) { create(:ci_job_artifact, file_store: store) }
let!(:artifact) { create(:ci_job_artifact, :archive, file_store: store) }
context 'when local storage is used' do
let(:store) { ObjectStoreUploader::LOCAL_STORE }
......
......@@ -83,7 +83,7 @@ describe ObjectStorageUploadWorker do
end
context 'for job artifacts' do
let(:artifact) { create(:ci_job_artifact) }
let(:artifact) { create(:ci_job_artifact, :archive) }
let(:uploader_class) { JobArtifactUploader }
let(:subject_class) { Ci::JobArtifact }
let(:file_field) { :file }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment