diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-09 00:09:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-09 00:09:17 +0300 |
commit | 1690313142e39075d231271bfdbc9ad95957106a (patch) | |
tree | 971c63ccab0947c43fc777ea45f19495d855062b /spec/lib/gitlab/usage_data_spec.rb | |
parent | 54943f1e68bd4e1951bf3d6c438acab8d783fc31 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/usage_data_spec.rb')
-rw-r--r-- | spec/lib/gitlab/usage_data_spec.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb index 00d4ce6d8fe..214331e15e8 100644 --- a/spec/lib/gitlab/usage_data_spec.rb +++ b/spec/lib/gitlab/usage_data_spec.rb @@ -1109,36 +1109,6 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do end end - describe 'redis_hll_counters' do - subject { described_class.redis_hll_counters } - - let(:migrated_categories) do - ::Gitlab::UsageDataCounters::HLLRedisCounter.categories_collected_from_metrics_definitions - end - - let(:categories) { ::Gitlab::UsageDataCounters::HLLRedisCounter.categories - migrated_categories } - let(:ignored_metrics) { ["i_package_composer_deploy_token_weekly"] } - - it 'has all known_events' do - expect(subject).to have_key(:redis_hll_counters) - - expect(subject[:redis_hll_counters].keys).to match_array(categories) - - categories.each do |category| - keys = ::Gitlab::UsageDataCounters::HLLRedisCounter.events_for_category(category) - - metrics = keys.map { |key| "#{key}_weekly" } + keys.map { |key| "#{key}_monthly" } - metrics -= ignored_metrics - - if ::Gitlab::UsageDataCounters::HLLRedisCounter::CATEGORIES_FOR_TOTALS.include?(category) - metrics.append("#{category}_total_unique_counts_weekly", "#{category}_total_unique_counts_monthly") - end - - expect(subject[:redis_hll_counters][category].keys).to match_array(metrics) - end - end - end - describe '.service_desk_counts' do subject { described_class.send(:service_desk_counts) } |