diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
commit | 0ea3fcec397b69815975647f5e2aa5fe944a8486 (patch) | |
tree | 7979381b89d26011bcf9bdc989a40fcc2f1ed4ff /spec/workers/expire_pipeline_cache_worker_spec.rb | |
parent | 72123183a20411a36d607d70b12d57c484394c8e (diff) |
Add latest changes from gitlab-org/gitlab@15-1-stable-eev15.1.0-rc42
Diffstat (limited to 'spec/workers/expire_pipeline_cache_worker_spec.rb')
-rw-r--r-- | spec/workers/expire_pipeline_cache_worker_spec.rb | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/spec/workers/expire_pipeline_cache_worker_spec.rb b/spec/workers/expire_pipeline_cache_worker_spec.rb deleted file mode 100644 index f4c4df2e752..00000000000 --- a/spec/workers/expire_pipeline_cache_worker_spec.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe ExpirePipelineCacheWorker do - let_it_be(:user) { create(:user) } - let_it_be(:project) { create(:project) } - let_it_be(:pipeline) { create(:ci_pipeline, project: project) } - - subject { described_class.new } - - describe '#perform' do - it 'executes the service' do - expect_next_instance_of(Ci::ExpirePipelineCacheService) do |instance| - expect(instance).to receive(:execute).with(pipeline).and_call_original - end - - subject.perform(pipeline.id) - end - - it "doesn't do anything if the pipeline not exist" do - expect_any_instance_of(Ci::ExpirePipelineCacheService).not_to receive(:execute) - expect_any_instance_of(Gitlab::EtagCaching::Store).not_to receive(:touch) - - subject.perform(617748) - end - - skip "with https://gitlab.com/gitlab-org/gitlab/-/issues/325291 resolved" do - it_behaves_like 'an idempotent worker' do - let(:job_args) { [pipeline.id] } - end - end - - it_behaves_like 'worker with data consistency', - described_class, - data_consistency: :delayed - end -end |