Add changelog. Add more specs.
This commit is contained in:
parent
6e641789fc
commit
6691194af9
3 changed files with 10 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Fix NULL pipeline import problem and pipeline user mapping issue
|
||||
merge_request: 21875
|
||||
author:
|
||||
type: fixed
|
|
@ -6154,6 +6154,7 @@
|
|||
"status": "failed",
|
||||
"started_at": null,
|
||||
"finished_at": null,
|
||||
"user_id": 9999,
|
||||
"duration": null,
|
||||
"notes": [
|
||||
{
|
||||
|
|
|
@ -62,6 +62,10 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
|
|||
expect(Ci::Pipeline.find_by_sha('sha-notes').notes).not_to be_empty
|
||||
end
|
||||
|
||||
it 'pipeline has the correct user ID' do
|
||||
expect(Ci::Pipeline.find_by_sha('sha-notes').user_id).to eq(@user.id)
|
||||
end
|
||||
|
||||
it 'restores pipelines with missing ref' do
|
||||
expect(Ci::Pipeline.where(ref: nil)).not_to be_empty
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue