Skip to content

Commit

Permalink
Incorporate radtriste comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Zanini <zanini@redhat.com>
  • Loading branch information
ricardozanini committed Jun 1, 2023
1 parent 060db32 commit 17c1a7c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ to know more.

## Available modules for integrations

If you're a developer and is interested in integrate your project or application with the Kogito Serverless Operator
ecosystem, this repository has available a few Go Modules described below.
If you're a developer, and you are interested in integrating your project or application with the Kogito Serverless Operator
ecosystem, this repository provides a few Go Modules described below.

### Kogito Serverless Operator Types (api)

Expand Down
12 changes: 12 additions & 0 deletions workflowproj/testdata/workflows/workflow-minimal-invalid.sw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"states": [
{
"name": "HelloWorld",
"type": "inject",
"data": {
"message": "Hello World"
},
"end": true
}
]
}
10 changes: 10 additions & 0 deletions workflowproj/workflowproj_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ func Test_Handler_WorkflowMinimal(t *testing.T) {
assert.Equal(t, "hello", proj.Workflow.Name)
}

func Test_Handler_WorkflowMinimalInvalid(t *testing.T) {
proj, err := New("default").WithWorkflow(getWorkflowMinimalInvalid()).AsObjects()
assert.Error(t, err)
assert.Nil(t, proj)
}

func Test_Handler_WorkflowMinimalAndProps(t *testing.T) {
proj, err := New("default").
Named("minimal").
Expand Down Expand Up @@ -127,6 +133,10 @@ func Test_Handler_WorklflowServiceAndPropsAndSpec_SaveAs(t *testing.T) {

}

func getWorkflowMinimalInvalid() io.Reader {
return mustGetFile("testdata/workflows/workflow-minimal-invalid.sw.json")
}

func getWorkflowMinimal() io.Reader {
return mustGetFile("testdata/workflows/workflow-minimal.sw.json")
}
Expand Down

0 comments on commit 17c1a7c

Please sign in to comment.