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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
c0716421
Commit
c0716421
authored
Sep 28, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor pipeline id ordering
parent
0b7ff7c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
spec/lib/gitlab/background_migration/populate_external_pipeline_source_spec.rb
...round_migration/populate_external_pipeline_source_spec.rb
+2
-1
No files found.
spec/lib/gitlab/background_migration/populate_external_pipeline_source_spec.rb
View file @
c0716421
...
...
@@ -6,6 +6,7 @@ describe Gitlab::BackgroundMigration::PopulateExternalPipelineSource, :migration
let
(
:migration
)
{
described_class
.
new
}
let!
(
:internal_pipeline
)
{
create
(
:ci_pipeline
,
source: :web
)
}
let
(
:pipelines
)
{
[
internal_pipeline
,
external_pipeline
,
second_external_pipeline
].
map
(
&
:id
)
}
let!
(
:external_pipeline
)
do
build
(
:ci_pipeline
,
source: :unknown
)
...
...
@@ -21,7 +22,7 @@ describe Gitlab::BackgroundMigration::PopulateExternalPipelineSource, :migration
create
(
:ci_build
,
pipeline:
internal_pipeline
)
end
subject
{
migration
.
perform
(
external_pipeline
.
id
,
second_external_pipeline
.
id
)
}
subject
{
migration
.
perform
(
pipelines
.
min
,
pipelines
.
max
)
}
it
'populates the pipeline source'
do
subject
...
...
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