diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
commit | 6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch) | |
tree | dc4d20fe6064752c0bd323187252c77e0a89144b /spec/lib/gitlab/instrumentation/redis_spec.rb | |
parent | 9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff) |
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'spec/lib/gitlab/instrumentation/redis_spec.rb')
-rw-r--r-- | spec/lib/gitlab/instrumentation/redis_spec.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/spec/lib/gitlab/instrumentation/redis_spec.rb b/spec/lib/gitlab/instrumentation/redis_spec.rb index 900a079cdd2..c01d06c97b0 100644 --- a/spec/lib/gitlab/instrumentation/redis_spec.rb +++ b/spec/lib/gitlab/instrumentation/redis_spec.rb @@ -71,14 +71,10 @@ RSpec.describe Gitlab::Instrumentation::Redis do stub_storages(:detail_store, [details_row]) - expect(described_class.detail_store) - .to contain_exactly(details_row.merge(storage: 'ActionCable'), - details_row.merge(storage: 'Cache'), - details_row.merge(storage: 'Queues'), - details_row.merge(storage: 'SharedState'), - details_row.merge(storage: 'TraceChunks'), - details_row.merge(storage: 'RateLimiting'), - details_row.merge(storage: 'Sessions')) + expected_detail_stores = Gitlab::Redis::ALL_CLASSES.map(&:store_name) + .map { |store_name| details_row.merge(storage: store_name) } + expected_detail_stores << details_row.merge(storage: 'ActionCable') + expect(described_class.detail_store).to contain_exactly(*expected_detail_stores) end end end |