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
ca6c588d
Commit
ca6c588d
authored
Sep 17, 2020
by
alinamihaila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rephrase test description
parent
1fcd8d97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/services/ci/create_job_artifacts_service.rb
app/services/ci/create_job_artifacts_service.rb
+1
-1
spec/lib/gitlab/utils/usage_data_spec.rb
spec/lib/gitlab/utils/usage_data_spec.rb
+2
-2
No files found.
app/services/ci/create_job_artifacts_service.rb
View file @
ca6c588d
...
...
@@ -27,7 +27,7 @@ module Ci
if
lsif?
(
artifact_type
)
headers
[
:ProcessLsif
]
=
true
track_usage_event
(
'i_source_code_code_intelligence'
,
project
)
track_usage_event
(
'i_source_code_code_intelligence'
,
project
.
id
)
end
success
(
headers:
headers
)
...
...
spec/lib/gitlab/utils/usage_data_spec.rb
View file @
ca6c588d
...
...
@@ -229,14 +229,14 @@ RSpec.describe Gitlab::Utils::UsageData do
described_class
.
track_usage_event
(
event_name
,
value
)
end
it
'does not track event usage ping is not enabled'
do
it
'does not track event
when
usage ping is not enabled'
do
stub_application_setting
(
usage_ping_enabled:
false
)
expect
(
Gitlab
::
UsageDataCounters
::
HLLRedisCounter
).
not_to
receive
(
:track_event
)
described_class
.
track_usage_event
(
event_name
,
value
)
end
it
'
logs an exception
for unknown event'
do
it
'
raise an error
for unknown event'
do
stub_application_setting
(
usage_ping_enabled:
true
)
expect
{
described_class
.
track_usage_event
(
unknown_event
,
value
)
}.
to
raise_error
(
Gitlab
::
UsageDataCounters
::
HLLRedisCounter
::
UnknownEvent
)
...
...
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