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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-07-08 12:09:33 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-08 12:09:33 +0300
commit7752bfa10fc817c6455f7e287d233fb6cd61a599 (patch)
treeec1871921f6f0040789478d95dfe4f286f482533 /spec/workers
parentcf1382025171f9e5f9147fdfbbff1d9f230a9fdd (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/authorized_project_update/user_refresh_from_replica_worker_spec.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/workers/authorized_project_update/user_refresh_from_replica_worker_spec.rb b/spec/workers/authorized_project_update/user_refresh_from_replica_worker_spec.rb
index 198a16bc22e..671269de519 100644
--- a/spec/workers/authorized_project_update/user_refresh_from_replica_worker_spec.rb
+++ b/spec/workers/authorized_project_update/user_refresh_from_replica_worker_spec.rb
@@ -34,30 +34,6 @@ RSpec.describe AuthorizedProjectUpdate::UserRefreshFromReplicaWorker do
execute_worker
end
-
- context 'setting `meta.caller_id` as `meta.related_class` in the context of the newly enqueued `UserRefreshWithLowUrgencyWorker` job' do
- context 'when the `UserRefreshFromReplicaWorker` job has a `caller_id` set' do
- it 'sets the same `caller_id` as `related_class`' do
- expect(AuthorizedProjectUpdate::UserRefreshWithLowUrgencyWorker).to receive(:perform_async).with(user.id) do
- expect(Gitlab::ApplicationContext.current).to include('meta.related_class' => 'Foo')
- end
-
- Gitlab::ApplicationContext.with_context(caller_id: 'Foo') do
- execute_worker
- end
- end
- end
-
- context 'when the `UserRefreshFromReplicaWorker` job does not have a `caller_id` set' do
- it 'does not set the value of `related_class`' do
- expect(AuthorizedProjectUpdate::UserRefreshWithLowUrgencyWorker).to receive(:perform_async).with(user.id) do
- expect(Gitlab::ApplicationContext.current).not_to include('meta.related_class')
- end
-
- execute_worker
- end
- end
- end
end
context 'when there are no additions or removals to be made to project authorizations for a specific user' do