Skip to content

Commit 63c35fd

Browse files
authored
Merge pull request serverlessworkflow#984 from neuroglia-io/fix-ctk-features
Fixed `call`, `raise` and `try` features
2 parents feb9ca9 + 8e74b9f commit 63c35fd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ctk/features/call.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Feature: Call Task
104104
with:
105105
document:
106106
endpoint: "https://petstore.swagger.io/v2/swagger.json"
107-
operation: findPetsByStatus
107+
operationId: findPetsByStatus
108108
parameters:
109109
status: ${ .status }
110110
output:
@@ -132,7 +132,7 @@ Feature: Call Task
132132
with:
133133
document:
134134
endpoint: "https://petstore.swagger.io/v2/swagger.json"
135-
operation: getPetById
135+
operationId: getPetById
136136
parameters:
137137
petId: ${ .petId }
138138
output: response

ctk/features/raise.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ Feature: Raise Task
2424
status: 400
2525
type: https://serverlessworkflow.io/errors/types/compliance
2626
title: Compliance Error
27-
instance: /do/raiseComplianceError
27+
instance: /do/0/raiseError
2828
"""

ctk/features/try.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Feature: Try Task
4343
And the workflow output should have properties 'error', 'error.type', 'error.status', 'error.title'
4444
And the workflow output should have a 'error.instance' property with value:
4545
"""yaml
46-
/do/tryGetPet/try
46+
/do/0/tryGetPet/try/0/getPet
4747
"""
4848

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

0 commit comments

Comments
 (0)