Skip to content

Commit 1e49b11

Browse files
test: distinguish file and sign request UUIDs in sign page
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 39e6d9b commit 1e49b11

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tests/integration/features/page/sign_identify_account.feature

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Feature: page/sign_identify_account
3030
| (jq).ocs.data.data[0].signers[0].identifyMethods\|length | 1 |
3131
| (jq).ocs.data.data[0].signers[0].identifyMethods[0].method | account |
3232
| (jq).ocs.data.data[0].signers[0].identifyMethods[0].value | signer1 |
33-
And fetch field "(SIGN_UUID)ocs.data.data.0.signers.0.sign_uuid" from previous JSON response
34-
# invalid UUID, need to be the signer UUID
33+
And fetch field "(SIGN_REQUEST_UUID)ocs.data.data.0.signers.0.sign_request_uuid" from previous JSON response
34+
# invalid UUID, need to be the sign request UUID
3535
When as user "signer1"
3636
And sending "get" to "/apps/libresign/p/sign/<FILE_UUID>"
3737
Then the response should have a status code 404
@@ -41,15 +41,15 @@ Feature: page/sign_identify_account
4141
| errors | [{"message":"Invalid UUID"}] |
4242
# invalid user
4343
When as user "admin"
44-
And sending "get" to "/apps/libresign/p/sign/<SIGN_UUID>"
44+
And sending "get" to "/apps/libresign/p/sign/<SIGN_REQUEST_UUID>"
4545
Then the response should have a status code 422
4646
And the response should be a JSON array with the following mandatory values
4747
| key | value |
4848
| action | 2000 |
4949
| errors | [{"message":"Invalid user"}] |
5050
# unauthenticated user
5151
When as user ""
52-
And sending "get" to "/apps/libresign/p/sign/<SIGN_UUID>"
52+
And sending "get" to "/apps/libresign/p/sign/<SIGN_REQUEST_UUID>"
5353
Then the response should have a status code 422
5454
And the response should be a JSON array with the following mandatory values
5555
| key | value |
@@ -83,17 +83,17 @@ Feature: page/sign_identify_account
8383
| (jq).ocs.data.data[0].signers[0].identifyMethods\|length | 1 |
8484
| (jq).ocs.data.data[0].signers[0].identifyMethods[0].method | account |
8585
| (jq).ocs.data.data[0].signers[0].identifyMethods[0].value | signer1 |
86-
And fetch field "(SIGN_UUID)ocs.data.data.0.signers.0.sign_uuid" from previous JSON response
86+
And fetch field "(SIGN_REQUEST_UUID)ocs.data.data.0.signers.0.sign_request_uuid" from previous JSON response
8787
When as user "signer1"
88-
And sending "get" to "/apps/libresign/p/sign/<SIGN_UUID>"
88+
And sending "get" to "/apps/libresign/p/sign/<SIGN_REQUEST_UUID>"
8989
And the response should contain the initial state "libresign-action" with the following values:
9090
"""
9191
2500
9292
"""
9393
And the response should contain the initial state "libresign-pdfs" with the following values:
9494
"""
9595
[
96-
"/index.php/apps/libresign/pdf/<SIGN_UUID>"
96+
"/index.php/apps/libresign/pdf/<SIGN_REQUEST_UUID>"
9797
]
9898
"""
9999
And the response should contain the initial state "libresign-filename" with the following values:

0 commit comments

Comments
 (0)