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
3f6418c6
Commit
3f6418c6
authored
Nov 04, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test log message arguments
parent
395fa5e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
spec/lib/gitlab/background_migration/populate_missing_vulnerability_dismissal_information_spec.rb
...ulate_missing_vulnerability_dismissal_information_spec.rb
+6
-2
No files found.
spec/lib/gitlab/background_migration/populate_missing_vulnerability_dismissal_information_spec.rb
View file @
3f6418c6
...
...
@@ -54,8 +54,12 @@ RSpec.describe Gitlab::BackgroundMigration::PopulateMissingVulnerabilityDismissa
it
'writes log messages'
do
subject
.
perform
(
vulnerability_1
.
id
,
vulnerability_2
.
id
)
expect
(
::
Gitlab
::
BackgroundMigration
::
Logger
).
to
have_received
(
:info
)
expect
(
::
Gitlab
::
BackgroundMigration
::
Logger
).
to
have_received
(
:warn
)
expect
(
::
Gitlab
::
BackgroundMigration
::
Logger
).
to
have_received
(
:info
).
with
(
migrator:
described_class
.
name
,
message:
'Dismissal information has been copied'
,
count:
2
)
expect
(
::
Gitlab
::
BackgroundMigration
::
Logger
).
to
have_received
(
:warn
).
with
(
migrator:
described_class
.
name
,
message:
'Could not update vulnerability!'
,
vulnerability_id:
vulnerability_2
.
id
)
end
end
end
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