Skip to content
Snippets Groups Projects

Add test for Signer presentation

Merged Georgi Michev requested to merge create-presentation-from-json into main
All threads resolved!
1 file
+ 9
0
Compare changes
  • Side-by-side
  • Inline
@@ -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}
Loading