Skip to content

Commit 480143f

Browse files
test: refresh tsa integration assertions
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent c4788eb commit 480143f

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

tests/integration/features/sign/tsa.feature

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Feature: TSA Integration - End-to-End Workflow
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
1313
And sending "post" to ocs "/apps/libresign/api/v1/admin/tsa"
14-
| tsa_url | <TSA_URL> |
15-
| tsa_auth_type | none |
14+
| tsa_url | <TSA_URL> |
15+
| tsa_policy_oid | 1.2.3.4.1 |
16+
| tsa_auth_type | none |
1617
And the response should have a status code 200
1718
And sending "post" to ocs "/apps/provisioning_api/api/v1/config/apps/libresign/identify_methods"
1819
| value | (string)[{"name":"account","enabled":true,"mandatory":true,"signatureMethods":{"clickToSign":{"enabled":true}},"signatureMethodEnabled":"clickToSign"}] |
@@ -51,11 +52,8 @@ Feature: TSA Integration - End-to-End Workflow
5152
| key | value |
5253
| (jq).ocs.data.signers[0].timestamp.serialNumber \|test("^[0-9]+$") | true |
5354
And the response should be a JSON array with the following mandatory values
54-
| key | value |
55-
| (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 |
56-
And the response should be a JSON array with the following mandatory values
57-
| key | value |
58-
| (jq).ocs.data.signers[0].timestamp.cnHints.commonName | LibreSign Local TSA |
55+
| key | value |
56+
| (jq).ocs.data.signers[0].timestamp.cnHints.commonName \|test("LibreSign Local TSA") | true |
5957

6058
Scenario: TSA error handling - Invalid server
6159
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)