diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 18:40:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 18:40:28 +0300 |
commit | b595cb0c1dec83de5bdee18284abe86614bed33b (patch) | |
tree | 8c3d4540f193c5ff98019352f554e921b3a41a72 /spec/workers/gitlab_service_ping_worker_spec.rb | |
parent | 2f9104a328fc8a4bddeaa4627b595166d24671d0 (diff) |
Add latest changes from gitlab-org/gitlab@15-2-stable-eev15.2.0-rc42
Diffstat (limited to 'spec/workers/gitlab_service_ping_worker_spec.rb')
-rw-r--r-- | spec/workers/gitlab_service_ping_worker_spec.rb | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/spec/workers/gitlab_service_ping_worker_spec.rb b/spec/workers/gitlab_service_ping_worker_spec.rb index 057639dcf1d..c88708dc50a 100644 --- a/spec/workers/gitlab_service_ping_worker_spec.rb +++ b/spec/workers/gitlab_service_ping_worker_spec.rb @@ -21,29 +21,12 @@ RSpec.describe GitlabServicePingWorker, :clean_gitlab_redis_shared_state do subject.perform end - context 'with prerecord_service_ping_data feature enabled' do - it 'delegates to ServicePing::SubmitService' do - stub_feature_flags(prerecord_service_ping_data: true) - - expect_next_instance_of(ServicePing::SubmitService, payload: payload) do |service| - expect(service).to receive(:execute) - end - - subject.perform + it 'delegates to ServicePing::SubmitService' do + expect_next_instance_of(ServicePing::SubmitService, payload: payload) do |service| + expect(service).to receive(:execute) end - end - context 'with prerecord_service_ping_data feature disabled' do - it 'does not prerecord ServicePing, and calls SubmitService', :aggregate_failures do - stub_feature_flags(prerecord_service_ping_data: false) - - expect(ServicePing::BuildPayload).not_to receive(:new) - expect(ServicePing::BuildPayload).not_to receive(:new) - expect_next_instance_of(ServicePing::SubmitService, payload: nil) do |service| - expect(service).to receive(:execute) - end - expect { subject.perform }.not_to change { RawUsageData.count } - end + subject.perform end context 'payload computation' do |