Adjust AMI output to the Lorax one
This commit is contained in:
parent
96d401b212
commit
4ef4112a12
3 changed files with 39 additions and 7 deletions
|
|
@ -149,7 +149,10 @@ func TestBlueprint_ToPipeline(t *testing.T) {
|
|||
}
|
||||
if !tt.wantErr {
|
||||
if !reflect.DeepEqual(got, &want) {
|
||||
t.Errorf("Blueprint.ToPipeline() = %v, want %v", got, &want)
|
||||
// Without this the "difference" is just a list of pointers.
|
||||
gotJson, _ := json.Marshal(got)
|
||||
fileJson, _ := json.Marshal(want)
|
||||
t.Errorf("Blueprint.ToPipeline() =\n%v,\nwant =\n%v", string(gotJson), string(fileJson))
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue