|
@ -26,7 +26,7 @@ func TestDeserializeOptionsResizeImage(t *testing.T) { |
|
|
t.Run("Image pipeline deserialization is successful", func(t *testing.T) { |
|
|
t.Run("Image pipeline deserialization is successful", func(t *testing.T) { |
|
|
values := DeserializePipelines([][]byte{[]byte(Payload)}) |
|
|
values := DeserializePipelines([][]byte{[]byte(Payload)}) |
|
|
|
|
|
|
|
|
_, err := values[0].GetSteps()[0].Translate() |
|
|
|
|
|
|
|
|
_, err := values[0].GetSteps()[0].GetExecutable() |
|
|
|
|
|
|
|
|
assert.Equal(t, nil, err) |
|
|
assert.Equal(t, nil, err) |
|
|
}) |
|
|
}) |
|
@ -51,7 +51,7 @@ func TestDeserializeOptionsCompressImage(t *testing.T) { |
|
|
t.Run("Image pipeline deserialization is successful", func(t *testing.T) { |
|
|
t.Run("Image pipeline deserialization is successful", func(t *testing.T) { |
|
|
values := DeserializePipelines([][]byte{[]byte(Payload)}) |
|
|
values := DeserializePipelines([][]byte{[]byte(Payload)}) |
|
|
|
|
|
|
|
|
_, err := values[0].GetSteps()[0].Translate() |
|
|
|
|
|
|
|
|
_, err := values[0].GetSteps()[0].GetExecutable() |
|
|
|
|
|
|
|
|
assert.Equal(t, nil, err) |
|
|
assert.Equal(t, nil, err) |
|
|
}) |
|
|
}) |
|
@ -73,7 +73,7 @@ func TestDeserializeMissingOptions(t *testing.T) { |
|
|
t.Run("Image pipeline deserialization is successful", func(t *testing.T) { |
|
|
t.Run("Image pipeline deserialization is successful", func(t *testing.T) { |
|
|
values := DeserializePipelines([][]byte{[]byte(Payload)}) |
|
|
values := DeserializePipelines([][]byte{[]byte(Payload)}) |
|
|
|
|
|
|
|
|
_, err := values[0].GetSteps()[0].Translate() |
|
|
|
|
|
|
|
|
_, err := values[0].GetSteps()[0].GetExecutable() |
|
|
|
|
|
|
|
|
assert.EqualError(t, err, "unexpected end of JSON input") |
|
|
assert.EqualError(t, err, "unexpected end of JSON input") |
|
|
}) |
|
|
}) |
|
|