Skip to content

Commit

Permalink
Added additional check for failing test in workflowproj
Browse files Browse the repository at this point in the history
Signed-off-by: Jordi Gil <[email protected]>
  • Loading branch information
jordigilh committed Jan 25, 2024
1 parent 1383333 commit 89ef882
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workflowproj/workflowproj_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
package workflowproj

import (
"fmt"
"io"
"os"
"path"
Expand Down Expand Up @@ -111,6 +112,8 @@ func Test_Handler_WorkflowMinimalAndPropsAndSpecAndGeneric(t *testing.T) {
assert.Equal(t, "02-hello-resources", proj.Resources[1].Name)
assert.Equal(t, proj.Workflow.Spec.Resources.ConfigMaps[0].ConfigMap.Name, proj.Resources[0].Name)
assert.Equal(t, proj.Workflow.Spec.Resources.ConfigMaps[1].ConfigMap.Name, proj.Resources[1].Name)
assert.NotEmpty(t, proj.Resources[0].Data, fmt.Sprintf("Data in proj.Resources[0] is empty %+v", proj.Resources[0]))
assert.NotEmpty(t, proj.Resources[1].Data, fmt.Sprintf("Data in proj.Resources[1] is empty %+v", proj.Resources[1]))
assert.NotEmpty(t, proj.Resources[0].Data["myopenapi.json"])
assert.NotEmpty(t, proj.Resources[1].Data["input.json"])
}
Expand Down

0 comments on commit 89ef882

Please sign in to comment.