Skip to content
Snippets Groups Projects
Unverified Commit 3d3a00d0 authored by Georgi Michev's avatar Georgi Michev
Browse files

add task with mothod and url


Signed-off-by: default avatargeorgi.michev <georgi.michev@vereign.com>
parent 1f79d797
No related branches found
No related tags found
1 merge request!22refactor step definitions
......@@ -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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment