diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-12 15:09:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-12 15:09:15 +0300 |
commit | d7fd035dc387e9c2e5c31bbb53d867239689cfbf (patch) | |
tree | cfa2a19998e4743be51c987f200495d80a4c4466 /spec/workers/repository_check | |
parent | ede2fbdc8734f095d371614d362b5ae373d6a243 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/repository_check')
-rw-r--r-- | spec/workers/repository_check/dispatch_worker_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/workers/repository_check/dispatch_worker_spec.rb b/spec/workers/repository_check/dispatch_worker_spec.rb index 5e1bc76ec8e..829abc7d895 100644 --- a/spec/workers/repository_check/dispatch_worker_spec.rb +++ b/spec/workers/repository_check/dispatch_worker_spec.rb @@ -42,5 +42,12 @@ RSpec.describe RepositoryCheck::DispatchWorker do subject.perform end + + it 'logs unhealthy shards' do + log_data = { message: "Excluding unhealthy shards", failed_checks: [{ labels: { shard: unhealthy_shard_name }, message: '14:Connect Failed', status: 'failed' }], class: described_class.name } + expect(Gitlab::AppLogger).to receive(:error).with(a_hash_including(log_data)) + + subject.perform + end end end |