Commit 78ebc68c authored by Rémy Coutable's avatar Rémy Coutable

Fix 3 tests that were failing due to a CE change

Following gitlab-org/gitlab-ce!19501, we now check remote objects too.
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 7712b27f
......@@ -5,13 +5,13 @@ describe Gitlab::Verify::JobArtifacts do
stub_artifacts_object_storage
end
it 'skips LFS objects in object storage' do
it 'includes CI job artifacts in object storage' do
local_failure = create(:ci_job_artifact)
create(:ci_job_artifact, :remote_store)
remote_failure = create(:ci_job_artifact, :remote_store)
failures = {}
described_class.new(batch_size: 10).run_batches { |_, failed| failures.merge!(failed) }
expect(failures.keys).to contain_exactly(local_failure)
expect(failures.keys).to contain_exactly(local_failure, remote_failure)
end
end
......@@ -5,13 +5,13 @@ describe Gitlab::Verify::LfsObjects do
stub_lfs_object_storage
end
it 'skips LFS objects in object storage' do
it 'includes LFS objects in object storage' do
local_failure = create(:lfs_object)
create(:lfs_object, :object_storage)
remote_failure = create(:lfs_object, :object_storage)
failures = {}
described_class.new(batch_size: 10).run_batches { |_, failed| failures.merge!(failed) }
expect(failures.keys).to contain_exactly(local_failure)
expect(failures.keys).to contain_exactly(local_failure, remote_failure)
end
end
......@@ -5,13 +5,13 @@ describe Gitlab::Verify::Uploads do
stub_uploads_object_storage(AvatarUploader)
end
it 'skips uploads in object storage' do
it 'includes uploads in object storage' do
local_failure = create(:upload)
create(:upload, :object_storage)
remote_failure = create(:upload, :object_storage)
failures = {}
described_class.new(batch_size: 10).run_batches { |_, failed| failures.merge!(failed) }
expect(failures.keys).to contain_exactly(local_failure)
expect(failures.keys).to contain_exactly(local_failure, remote_failure)
end
end
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