Skip to content

Commit

Permalink
Merge pull request serverlessworkflow#984 from neuroglia-io/fix-ctk-f…
Browse files Browse the repository at this point in the history
…eatures

Fixed `call`, `raise` and `try` features
  • Loading branch information
cdavernas authored Aug 21, 2024
2 parents feb9ca9 + 8e74b9f commit 63c35fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ctk/features/call.feature
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Feature: Call Task
with:
document:
endpoint: "https://petstore.swagger.io/v2/swagger.json"
operation: findPetsByStatus
operationId: findPetsByStatus
parameters:
status: ${ .status }
output:
Expand Down Expand Up @@ -132,7 +132,7 @@ Feature: Call Task
with:
document:
endpoint: "https://petstore.swagger.io/v2/swagger.json"
operation: getPetById
operationId: getPetById
parameters:
petId: ${ .petId }
output: response
Expand Down
2 changes: 1 addition & 1 deletion ctk/features/raise.feature
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ Feature: Raise Task
status: 400
type: https://serverlessworkflow.io/errors/types/compliance
title: Compliance Error
instance: /do/raiseComplianceError
instance: /do/0/raiseError
"""
2 changes: 1 addition & 1 deletion ctk/features/try.feature
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Feature: Try Task
And the workflow output should have properties 'error', 'error.type', 'error.status', 'error.title'
And the workflow output should have a 'error.instance' property with value:
"""yaml
/do/tryGetPet/try
/do/0/tryGetPet/try/0/getPet
"""

# Tests that try tasks fault when an uncaught error is raised
Expand Down

0 comments on commit 63c35fd

Please sign in to comment.