Add changelog. Add more specs.

This commit is contained in:
James Lopez 2018-09-24 12:02:43 +02:00
parent 6e641789fc
commit 6691194af9
No known key found for this signature in database
GPG Key ID: 756BF8E9D7C0CF39
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
title: Fix NULL pipeline import problem and pipeline user mapping issue
merge_request: 21875
author:
type: fixed

View File

@ -6154,6 +6154,7 @@
"status": "failed",
"started_at": null,
"finished_at": null,
"user_id": 9999,
"duration": null,
"notes": [
{

View File

@ -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