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
54814054
Commit
54814054
authored
Jun 09, 2021
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend the test setup with false-positive values
parent
917d469e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
ee/spec/lib/ee/gitlab/background_migration/populate_latest_pipeline_ids_spec.rb
...background_migration/populate_latest_pipeline_ids_spec.rb
+3
-0
No files found.
ee/spec/lib/ee/gitlab/background_migration/populate_latest_pipeline_ids_spec.rb
View file @
54814054
...
...
@@ -37,6 +37,8 @@ RSpec.describe Gitlab::BackgroundMigration::PopulateLatestPipelineIds do
let!
(
:project_2_latest_pipeline
)
{
pipelines
.
create!
(
project_id:
project_2
.
id
,
ref:
'master'
,
sha:
'adf43c3a'
,
status:
'success'
)
}
let!
(
:project_3_pipeline
)
{
pipelines
.
create!
(
project_id:
project_3
.
id
,
ref:
'master'
,
sha:
'adf43c3a'
,
status:
'success'
)
}
let!
(
:project_4_pipeline
)
{
pipelines
.
create!
(
project_id:
project_4
.
id
,
ref:
'master'
,
sha:
'adf43c3a'
,
status:
'canceled'
)
}
let!
(
:project_4_pipeline_with_wrong_status
)
{
pipelines
.
create!
(
project_id:
project_4
.
id
,
ref:
'master'
,
sha:
'adf43c3a'
,
status:
'running'
)
}
let!
(
:project_4_pipeline_without_security_builds
)
{
pipelines
.
create!
(
project_id:
project_4
.
id
,
ref:
'master'
,
sha:
'adf43c3a'
,
status:
'success'
)
}
let!
(
:project_2_stats
)
{
vulnerability_statistics
.
create!
(
project_id:
project_2
.
id
,
letter_grade:
letter_grade_a
,
latest_pipeline_id:
project_2_pipeline
.
id
)
}
let!
(
:project_4_stats
)
{
vulnerability_statistics
.
create!
(
project_id:
project_4
.
id
,
letter_grade:
letter_grade_a
)
}
...
...
@@ -56,6 +58,7 @@ RSpec.describe Gitlab::BackgroundMigration::PopulateLatestPipelineIds do
create_security_build_for
(
project_2_latest_pipeline
,
file_type:
file_types
[
:container_scanning
])
create_security_build_for
(
project_3_pipeline
,
file_type:
file_types
[
:secret_detection
])
create_security_build_for
(
project_4_pipeline
,
file_type:
file_types
[
:coverage_fuzzing
])
create_security_build_for
(
project_4_pipeline_with_wrong_status
,
file_type:
file_types
[
:coverage_fuzzing
])
end
describe
'#perform'
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