Skip to content

Commit 6c7f1de

Browse files
fix(integration): use admin TSA API and local TSA cnHints in tsa workflow
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 95de009 commit 6c7f1de

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

tests/integration/features/sign/tsa.feature

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ Feature: TSA Integration - End-to-End Workflow
1010

1111
Scenario: TSA workflow - Successfully signs document with timestamp
1212
Given run the command "config:app:set libresign signing_mode --value=sync --type=string" with result code 0
13-
And run the command "config:app:set libresign tsa_url --value=${LIBRESIGN_TSA_URL:-https://freetsa.org/tsr} --type=string" with result code 0
14-
And run the command "config:app:set libresign tsa_auth_type --value=none --type=string" with result code 0
13+
And sending "post" to ocs "/apps/libresign/api/v1/admin/tsa"
14+
| tsa_url | <TSA_URL> |
15+
| tsa_auth_type | none |
16+
And the response should have a status code 200
1517
And sending "post" to ocs "/apps/provisioning_api/api/v1/config/apps/libresign/identify_methods"
1618
| value | (string)[{"name":"account","enabled":true,"mandatory":true,"signatureMethods":{"clickToSign":{"enabled":true}},"signatureMethodEnabled":"clickToSign"}] |
1719
And the response should have a status code 200
@@ -52,9 +54,8 @@ Feature: TSA Integration - End-to-End Workflow
5254
| key | value |
5355
| (jq).ocs.data.signers[0].timestamp.genTime \|test("^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}") | true |
5456
And the response should be a JSON array with the following mandatory values
55-
| key | value |
56-
| (jq).ocs.data.signers[0].timestamp.cnHints.commonName | www.freetsa.org |
57-
| (jq).ocs.data.signers[0].timestamp.cnHints.countryName | DE |
57+
| key | value |
58+
| (jq).ocs.data.signers[0].timestamp.cnHints.commonName | LibreSign Local TSA |
5859

5960
Scenario: TSA error handling - Invalid server
6061
Given run the command "config:app:set libresign tsa_url --value=https://invalid-tsa-server.example.com/tsr --type=string" with result code 0

0 commit comments

Comments
 (0)