Commit 6691194a authored by James Lopez's avatar James Lopez

Add changelog. Add more specs.

parent 6e641789
---
title: Fix NULL pipeline import problem and pipeline user mapping issue
merge_request: 21875
author:
type: fixed
...@@ -6154,6 +6154,7 @@ ...@@ -6154,6 +6154,7 @@
"status": "failed", "status": "failed",
"started_at": null, "started_at": null,
"finished_at": null, "finished_at": null,
"user_id": 9999,
"duration": null, "duration": null,
"notes": [ "notes": [
{ {
......
...@@ -62,6 +62,10 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do ...@@ -62,6 +62,10 @@ describe Gitlab::ImportExport::ProjectTreeRestorer do
expect(Ci::Pipeline.find_by_sha('sha-notes').notes).not_to be_empty expect(Ci::Pipeline.find_by_sha('sha-notes').notes).not_to be_empty
end 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 it 'restores pipelines with missing ref' do
expect(Ci::Pipeline.where(ref: nil)).not_to be_empty expect(Ci::Pipeline.where(ref: nil)).not_to be_empty
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment