Skip to content

Fixed call, raise and try features #984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading