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

Add new negative test and insert tags


Signed-off-by: default avatargeorgi.michev <georgi.michev@vereign.com>
parent 0de16736
No related branches found
No related tags found
1 merge request!33Add test for Signer presentation
Pipeline #53352 passed with stage
in 4 minutes and 42 seconds
......@@ -38,6 +38,7 @@ Feature: API - TSA - Signer create presentation from JSON - v1/presentation POST
| multi data | multi | Signer_JSON_multi_schema.json |
| with context | context | Signer_JSON_context_schema.json |
@negative
Scenario Outline: TSA - create presentation from JSON <labelSuffix> - Negative
When I load the REST request {Data.json} with profile {<profileOption>}
And I create presentation from JSON via TSA Signer API
......@@ -51,3 +52,11 @@ Feature: API - TSA - Signer create presentation from JSON - v1/presentation POST
| missing data field | missing_data | "data" is missing from body |
| blank data | blank_data | invalid or missing credentials data |
| wrong format | data_format | json: cannot unmarshal string into Go struct field |
@negative
Scenario: TSA - create presentation from JSON with invalid body - Negative
When I set the following request body {{"data":[{"text": "some text"}}}
And I create presentation from JSON via TSA Signer API
Then the status code should be {400}
And the response is valid according to the {Signer_GetKey_negative_schema.json} REST schema
And the field {message} contains the value {invalid character}
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