Commit 8f1ab241 authored by Luis Mejia's avatar Luis Mejia

Add specs for testing keys for instrumentation_class

parent ec070b8d
......@@ -53,6 +53,19 @@ RSpec.describe Gitlab::UsageDataMetrics do
:search_total_unique_counts_monthly, :search_total_unique_counts_weekly
])
end
it 'includes testing monthly and weekly keys' do
expect(subject[:redis_hll_counters][:testing]).to include(
:i_testing_metrics_report_widget_total_monthly, :i_testing_metrics_report_widget_total_weekly,
:i_testing_group_code_coverage_visit_total_monthly, :i_testing_group_code_coverage_visit_total_weekly,
:i_testing_full_code_quality_report_total_monthly, :i_testing_full_code_quality_report_total_weekly,
:i_testing_web_performance_widget_total_monthly, :i_testing_web_performance_widget_total_weekly,
:i_testing_group_code_coverage_project_click_total_monthly, :i_testing_group_code_coverage_project_click_total_weekly,
:i_testing_load_performance_widget_total_monthly, :i_testing_load_performance_widget_total_weekly,
:i_testing_metrics_report_artifact_uploaders_monthly, :i_testing_metrics_report_artifact_uploaders_weekly,
:testing_total_unique_counts_weekly
)
end
end
end
end
......@@ -66,6 +66,16 @@ RSpec.describe Gitlab::UsageDataMetrics do
)
end
it 'includes testing monthly and weekly keys' do
expect(subject[:redis_hll_counters][:testing]).to include(
:i_testing_test_case_parsed_monthly, :i_testing_test_case_parsed_weekly,
:users_expanding_testing_code_quality_report_monthly, :users_expanding_testing_code_quality_report_weekly,
:users_expanding_testing_accessibility_report_monthly, :users_expanding_testing_accessibility_report_weekly,
:i_testing_summary_widget_total_monthly, :i_testing_summary_widget_total_weekly,
:testing_total_unique_counts_monthly
)
end
it 'includes source_code monthly and weekly keys' do
expect(subject[:redis_hll_counters][:source_code].keys).to contain_exactly(*[
:wiki_action_monthly, :wiki_action_weekly,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment