From 3d3a00d0490d722bde139a893ae44c0d19f239b9 Mon Sep 17 00:00:00 2001 From: "georgi.michev" <georgi.michev@vereign.com> Date: Mon, 4 Jul 2022 17:12:29 +0300 Subject: [PATCH] add task with mothod and url Signed-off-by: georgi.michev <georgi.michev@vereign.com> --- .../tsa/task/v1/task/{taskName}/POST.feature | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 f5443a01..e7fcb024 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} -- GitLab