Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8f1ab241
Commit
8f1ab241
authored
Aug 05, 2021
by
Luis Mejia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specs for testing keys for instrumentation_class
parent
ec070b8d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
ee/spec/lib/gitlab/usage_data_metrics_spec.rb
ee/spec/lib/gitlab/usage_data_metrics_spec.rb
+13
-0
spec/lib/gitlab/usage_data_metrics_spec.rb
spec/lib/gitlab/usage_data_metrics_spec.rb
+10
-0
No files found.
ee/spec/lib/gitlab/usage_data_metrics_spec.rb
View file @
8f1ab241
...
...
@@ -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
spec/lib/gitlab/usage_data_metrics_spec.rb
View file @
8f1ab241
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment