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
c9c6551c
Commit
c9c6551c
authored
Aug 19, 2020
by
Alper Akgun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unneeded test
We already cover the case
parent
de1b0a2b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
ee/spec/lib/ee/gitlab/usage_data_spec.rb
ee/spec/lib/ee/gitlab/usage_data_spec.rb
+0
-29
No files found.
ee/spec/lib/ee/gitlab/usage_data_spec.rb
View file @
c9c6551c
...
...
@@ -155,12 +155,6 @@ RSpec.describe Gitlab::UsageData do
expect
(
count_data
[
:coverage_fuzzing_jobs
]).
to
eq
(
1
)
end
it
'correctly shows failure for combined license management'
do
allow
(
Gitlab
::
Database
::
BatchCount
).
to
receive
(
:batch_count
).
and_raise
(
ActiveRecord
::
StatementInvalid
)
expect
(
count_data
[
:license_management_jobs
]).
to
eq
(
-
1
)
end
it
'gathers group overview preferences usage data'
,
:aggregate_failures
do
expect
(
subject
[
:counts
][
:user_preferences_group_overview_details
]).
to
eq
(
User
.
active
.
count
-
2
)
# we have exactly 2 active users with security dashboard set
expect
(
subject
[
:counts
][
:user_preferences_group_overview_security_dashboard
]).
to
eq
2
...
...
@@ -625,29 +619,6 @@ RSpec.describe Gitlab::UsageData do
user_unique_users_all_secure_scanners:
1
)
end
it
'has to resort to 0 for counting license scan'
do
allow
(
Gitlab
::
Database
::
BatchCount
).
to
receive
(
:batch_distinct_count
).
and_raise
(
ActiveRecord
::
StatementInvalid
)
allow
(
::
Ci
::
Build
).
to
receive
(
:distinct_count_by
).
and_raise
(
ActiveRecord
::
StatementInvalid
)
expect
(
described_class
.
usage_activity_by_stage_secure
(
described_class
.
last_28_days_time_period
)).
to
eq
(
user_preferences_group_overview_security_dashboard:
3
,
user_container_scanning_jobs:
-
1
,
user_coverage_fuzzing_jobs:
-
1
,
user_dast_jobs:
-
1
,
user_dependency_scanning_jobs:
-
1
,
user_license_management_jobs:
-
1
,
user_sast_jobs:
-
1
,
user_secret_detection_jobs:
-
1
,
sast_pipeline:
-
1
,
dependency_scanning_pipeline:
-
1
,
container_scanning_pipeline:
-
1
,
dast_pipeline:
-
1
,
secret_detection_pipeline:
-
1
,
coverage_fuzzing_pipeline:
-
1
,
user_unique_users_all_secure_scanners:
-
1
)
end
end
describe
'usage_activity_by_stage_verify'
do
...
...
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