diff --git a/src/test/resources/features/tsa/task/v1/task/{taskName}/POST.feature b/src/test/resources/features/tsa/task/v1/task/{taskName}/POST.feature index f5443a01077c1234a72339d838f99a56a3d176ec..e7fcb0244ca3e4fea71c5cb1944e579e47ea54e7 100644 --- a/src/test/resources/features/tsa/task/v1/task/{taskName}/POST.feature +++ b/src/test/resources/features/tsa/task/v1/task/{taskName}/POST.feature @@ -35,14 +35,24 @@ Feature: API -TSA - Task - v1/task POST And I execute the Task {didResolve} via TSA Task API Then the status code should be {200} And the response is valid according to the {Task_Execute_schema.json} REST schema - And I get the current Task Result via TSA Task API Then I clear the request body And I wait for {2000} mseconds Then I get the current Task Result via TSA Task API - Then the status code should be {200} + And the status code should be {200} And the response is valid according to the {Task_ExecuteDID_schema.json} REST schema And the field {data.didDocument.id} has the value {did:key:z6Mkfriq1MqLBoPWecGoDLjguo1sB9brj6wT3qZ5BxkKpuP6} + Scenario: TSA - Executing Task with method and url - Positive + When I set the following request body {{"message": "hello"}} + And I execute the Task {exampleTask} via TSA Task API + Then the status code should be {200} + And the response is valid according to the {Task_Execute_schema.json} REST schema + And I wait for {2000} mseconds + And I clear the request body + Then I get the current Task Result via TSA Task API + And the status code should be {200} + And the field {title} has the value {delectus aut autem} + @negative Scenario: TSA - Executing Task with non existing task template - Negative When I load the REST request {Policy.json} with profile {did_key}