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
35efd0e5
Commit
35efd0e5
authored
Feb 08, 2021
by
Michał Zając
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set default values for report_type and confidence
parent
36e32d9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ee/spec/migrations/update_undefined_confidence_from_occurrences_spec.rb
...ions/update_undefined_confidence_from_occurrences_spec.rb
+3
-3
No files found.
ee/spec/migrations/update_undefined_confidence_from_occurrences_spec.rb
View file @
35efd0e5
...
...
@@ -8,8 +8,8 @@ RSpec.describe UpdateUndefinedConfidenceFromOccurrences, :migration do
let
(
:identifiers
)
{
table
(
:vulnerability_identifiers
)
}
let
(
:scanners
)
{
table
(
:vulnerability_scanners
)
}
let
(
:projects
)
{
table
(
:projects
)
}
let
(
:vul1
)
{
attributes_for_vulnerability_finding
(
id:
1
,
report_type:
2
,
confidence:
5
)
}
let
(
:vul2
)
{
attributes_for_vulnerability_finding
(
id:
2
,
report_type:
2
,
confidence:
5
)
}
let
(
:vul1
)
{
attributes_for_vulnerability_finding
(
id:
1
)
}
let
(
:vul2
)
{
attributes_for_vulnerability_finding
(
id:
2
)
}
before
do
stub_const
(
"
#{
described_class
}
::BATCH_SIZE"
,
2
)
...
...
@@ -108,7 +108,7 @@ RSpec.describe UpdateUndefinedConfidenceFromOccurrences, :migration do
private
def
attributes_for_vulnerability_finding
(
id
:,
report_type
:
,
confidence
:
)
def
attributes_for_vulnerability_finding
(
id
:,
report_type:
2
,
confidence:
5
)
uuid
=
SecureRandom
.
uuid
{
id:
id
,
...
...
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