-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
request.feature
449 lines (433 loc) · 23.6 KB
/
request.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
Feature: request-signature
Scenario: Get error when try to request to sign isn't manager
Given user "signer1" exists
And as user "signer1"
And run the command "libresign:configure:openssl --cn test"
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"base64":""} |
| users | [{"identify":{"account":"signer1"}}] |
| name | document |
Then the response should have a status code 422
And the response should be a JSON array with the following mandatory values
| key | value |
| action | 2000 |
| errors | ["You are not allowed to request signing"] |
Scenario: Get error when try to request to sign without file name
Given as user "admin"
And run the command "libresign:configure:openssl --cn test"
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"invalid":""} |
| users | [{"identify":{"account":"signer1"}}] |
| name | |
Then the response should have a status code 422
And the response should be a JSON array with the following mandatory values
| key | value |
| message | Name is mandatory |
Scenario: Request to sign with error using different authenticated account
Given as user "admin"
And user "signer1" exists
And run the command "libresign:configure:openssl --cn test"
And set the email of user "signer1" to "signer1@domain.test"
And reset notifications of user "signer1"
And sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| users | [{"identify":{"account":"signer1"}}] |
| name | document |
And the response should have a status code 200
And as user "signer1"
And I fetch the signer UUID from notification
And user "signer2" exists
And as user "signer2"
When sending "get" to "/apps/libresign/p/sign/<SIGN_UUID>"
Then the response should have a status code 422
And the response should be a JSON array with the following mandatory values
| key | value |
| action | 2000 |
| errors | ["Invalid user"] |
Scenario: Request to sign with error when the user is not authenticated
Given as user "admin"
And user "signer1" exists
And run the command "libresign:configure:openssl --cn test"
And reset notifications of user "signer1"
And my inbox is empty
And sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| users | [{"identify":{"account":"signer1"}}] |
| name | document |
Then the response should have a status code 200
And as user "signer1"
And I fetch the signer UUID from notification
And as user ""
When sending "get" to "/apps/libresign/p/sign/<SIGN_UUID>"
Then the response should have a status code 422
And the response should be a JSON array with the following mandatory values
| key | value |
| action | 1000 |
| errors | ["You are not logged in. Please log in."] |
Scenario: Request to sign with error when the authenticated user have an email different of signer
Given as user "admin"
And user "signer1" exists
And run the command "libresign:configure:openssl --cn test"
And reset notifications of user "signer1"
And set the email of user "signer1" to "signer1@domain.test"
And my inbox is empty
And sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| users | [{"identify":{"email":"signer1@domain.test"}}] |
| name | document |
Then the response should have a status code 200
And there should be 1 emails in my inbox
And I open the latest email to "signer1@domain.test" with subject "LibreSign: There is a file for you to sign"
And I fetch the signer UUID from opened email
And user "signer2" exists
And set the email of user "signer2" to "signer2@domain.test"
And as user "signer2"
When sending "get" to "/apps/libresign/p/sign/<SIGN_UUID>"
Then the response should have a status code 422
And the response should be a JSON array with the following mandatory values
| key | value |
| action | 1000 |
| errors | ["User already exists. Please login."] |
Scenario: Request to sign with error when the link was expired
Given as user "admin"
And my inbox is empty
And run the command "libresign:developer:reset --all"
And run the command "libresign:configure:openssl --cn test"
And run the command "config:app:set libresign maximum_validity --value 1"
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| users | [{"identify":{"email":"signer2@domain.test"}}] |
| name | document |
Then the response should have a status code 200
And there should be 1 emails in my inbox
And I open the latest email to "signer2@domain.test" with subject "LibreSign: There is a file for you to sign"
And I fetch the signer UUID from opened email
And as user ""
When wait for 2 second
And sending "get" to "/apps/libresign/p/sign/<SIGN_UUID>"
Then the response should have a status code 422
And the response should be a JSON array with the following mandatory values
| key | value |
| action | 2000 |
| errors | ["Link expired."] |
Scenario: Request to sign with success when is necessary to renew the link
Given as user "admin"
And my inbox is empty
And run the command "libresign:developer:reset --all"
And run the command "libresign:configure:openssl --cn test"
And sending "post" to ocs "/apps/provisioning_api/api/v1/config/apps/libresign/identify_methods"
| value | (string)[{"name":"email","enabled":true,"mandatory":true,"can_create_account":false}] |
And sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| users | [{"identify":{"email":"signer2@domain.test"}}] |
| name | document |
And the response should have a status code 200
And there should be 1 emails in my inbox
And I open the latest email to "signer2@domain.test" with subject "LibreSign: There is a file for you to sign"
And I fetch the signer UUID from opened email
And as user ""
And run the command "config:app:set libresign maximum_validity --value 300"
And run the command "config:app:set libresign renewal_interval --value 1"
Given wait for 2 second
When sending "get" to "/apps/libresign/p/sign/<SIGN_UUID>"
Then the response should have a status code 422
And the response should be a JSON array with the following mandatory values
| key | value |
| action | 4500 |
| title | Link expired |
Given my inbox is empty
When as user "admin"
And sending "post" to ocs "/apps/libresign/api/v1/sign/uuid/<SIGN_UUID>/renew/email"
Then the response should have a status code 200
And the response should be a JSON array with the following mandatory values
| key | value |
| message | Renewed with success. Access the link again. |
And I open the latest email to "signer2@domain.test" with subject "LibreSign: Changes into a file for you to sign"
And I fetch the signer UUID from opened email
And as user ""
# setting the renewal interval to 2 and making 3 requests, one by second,
# the 3rd don't will fail because on each valid request, the renewal
# interval is renewed.
And run the command "config:app:set libresign renewal_interval --value 2"
Given wait for 1 second
When sending "get" to "/apps/libresign/p/sign/<SIGN_UUID>"
And the response should have a status code 200
Given wait for 1 second
When sending "get" to "/apps/libresign/p/sign/<SIGN_UUID>"
Then the response should have a status code 200
Given wait for 1 second
When sending "get" to "/apps/libresign/p/sign/<SIGN_UUID>"
Then the response should have a status code 200
And the response should contain the initial state "libresign-action" with the following values:
"""
2500
"""
Scenario: Request to sign with error using account as identifier when the user don't exists
Given as user "admin"
And sending "post" to ocs "/apps/provisioning_api/api/v1/config/apps/libresign/identify_methods"
| value | (string)[{"name":"account","enabled":true}] |
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| users | [{"identify":{"account":"signer2"}}] |
| name | document |
Then the response should be a JSON array with the following mandatory values
| key | value |
| message | User not found. |
Scenario: Request to sign with success using account as identifier
Given as user "admin"
And user "signer1" exists
And run the command "libresign:developer:reset --all"
And run the command "libresign:configure:openssl --cn test"
And set the email of user "signer1" to "signer1@domain.test"
And reset notifications of user "signer1"
And my inbox is empty
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| users | [{"identify":{"account":"signer1"}}] |
| name | document |
Then the response should have a status code 200
When as user "signer1"
Then sending "get" to ocs "/apps/notifications/api/v2/notifications"
And the response should be a JSON array with the following mandatory values
| key | value |
| ocs | (jq).data\|.[].subject == "admin requested your signature on document"|
When sending "get" to ocs "/apps/activity/api/v2/activity/libresign?since=0"
Then the response should be a JSON array with the following mandatory values
| key | value |
| ocs | (jq).data\|.[].subject == "admin requested your signature on document"|
Scenario: Request to sign with error using account as identifier with invalid email
Given as user "admin"
And run the command "libresign:developer:reset --all"
And run the command "libresign:configure:openssl --cn test"
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| users | [{"identify":{"account":"invaliddomain.test"}}] |
| name | document |
Then the response should have a status code 422
Then the response should be a JSON array with the following mandatory values
| key | value |
| message | User not found. |
Scenario: Request to sign with error using email as account identifier
Given as user "admin"
And run the command "libresign:configure:openssl --cn test"
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| users | [{"identify":{"account":"signer3@domain.test"}}] |
| name | document |
Then the response should have a status code 422
Then the response should be a JSON array with the following mandatory values
| key | value |
| message | User not found. |
Scenario: Request to sign with success using email as identifier and URL as file
Given as user "admin"
And run the command "libresign:configure:openssl --cn test"
And my inbox is empty
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| users | [{"identify":{"email":"signer2@domain.test"}}] |
| name | document |
Then the response should have a status code 200
And there should be 1 emails in my inbox
And I open the latest email to "signer2@domain.test" with subject "LibreSign: There is a file for you to sign"
Scenario: Request to sign with success using account as identifier and URL as file
Given as user "admin"
And user "signer1" exists
And run the command "libresign:configure:openssl --cn test"
And set the email of user "signer1" to "signer1@domain.test"
And reset notifications of user "signer1"
And my inbox is empty
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| users | [{"identify":{"account":"signer1"}}] |
| name | document |
Then the response should have a status code 200
When as user "signer1"
And sending "get" to ocs "/apps/notifications/api/v2/notifications"
Then the response should be a JSON array with the following mandatory values
| key | value |
| ocs | (jq).data\|.[].subject == "admin requested your signature on document"|
And there should be 0 emails in my inbox
Scenario: Request to sign with success using email as identifier
Given as user "admin"
And run the command "libresign:configure:openssl --cn test"
And set the email of user "signer1" to "signer1@domain.test"
And my inbox is empty
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| users | [{"identify":{"email":"signer1@domain.test"}}] |
| name | document |
Then the response should have a status code 200
And there should be 1 emails in my inbox
And I open the latest email to "signer1@domain.test" with subject "LibreSign: There is a file for you to sign"
Scenario: Request to sign using email as identifier and when is necessary to use visible elements
Given as user "admin"
And run the command "libresign:configure:openssl --cn test"
And sending "post" to ocs "/apps/provisioning_api/api/v1/config/apps/libresign/identify_methods"
| value | (string)[{"name":"email","enabled":true,"mandatory":true,"can_create_account":false}] |
And I send a file to be signed
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| users | [{"identify":{"email":"signer1@domain.test"}}] |
| status | 0 |
| name | document |
And the response should have a status code 200
And sending "get" to ocs "/apps/libresign/api/v1/file/list"
And fetch field "data.0.signers.0.signRequestId" from prevous JSON response
When sending "post" to ocs "/apps/libresign/api/v1/file-element/<FILE_UUID>"
| signRequestId | <data.0.signers.0.signRequestId> |
| type | signature |
Then the response should have a status code 404
And the response should be a JSON array with the following mandatory values
| key | value |
| errors | ["You do not have permission for this action."] |
When sending "post" to ocs "/apps/provisioning_api/api/v1/config/apps/libresign/identify_methods"
| value | (string)[{"name":"email","enabled":true,"mandatory":true,"can_create_account":true}] |
And sending "post" to ocs "/apps/libresign/api/v1/file-element/<FILE_UUID>"
| signRequestId | <data.0.signers.0.signRequestId> |
| type | signature |
Then the response should have a status code 200
Scenario: Request to sign with success using multiple users
Given as user "admin"
And user "signer1" exists
And run the command "libresign:configure:openssl --cn test"
And set the email of user "signer1" to "signer1@domain.test"
And my inbox is empty
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"base64":"data:application/pdf;base64,JVBERi0xLjYKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nDPQM1Qo5ypUMFAw0DMwslAwtTTVMzIxV7AwMdSzMDNUKErlCtdSyOMyVADBonQuA4iUhaVCLheKYqBIDlw7xLAcuLEgFlwVVwZXmhZXoAIAI+sZGAplbmRzdHJlYW0KZW5kb2JqCgozIDAgb2JqCjg2CmVuZG9iagoKNSAwIG9iago8PAo+PgplbmRvYmoKCjYgMCBvYmoKPDwvRm9udCA1IDAgUgovUHJvY1NldFsvUERGL1RleHRdCj4+CmVuZG9iagoKMSAwIG9iago8PC9UeXBlL1BhZ2UvUGFyZW50IDQgMCBSL1Jlc291cmNlcyA2IDAgUi9NZWRpYUJveFswIDAgNTk1LjI3NTU5MDU1MTE4MSA4NDEuODg5NzYzNzc5NTI4XS9Hcm91cDw8L1MvVHJhbnNwYXJlbmN5L0NTL0RldmljZVJHQi9JIHRydWU+Pi9Db250ZW50cyAyIDAgUj4+CmVuZG9iagoKNCAwIG9iago8PC9UeXBlL1BhZ2VzCi9SZXNvdXJjZXMgNiAwIFIKL01lZGlhQm94WyAwIDAgNTk1IDg0MSBdCi9LaWRzWyAxIDAgUiBdCi9Db3VudCAxPj4KZW5kb2JqCgo3IDAgb2JqCjw8L1R5cGUvQ2F0YWxvZy9QYWdlcyA0IDAgUgovT3BlbkFjdGlvblsxIDAgUiAvWFlaIG51bGwgbnVsbCAwXQo+PgplbmRvYmoKCjggMCBvYmoKPDwvQ3JlYXRvcjxGRUZGMDA0NDAwNzIwMDYxMDA3Nz4KL1Byb2R1Y2VyPEZFRkYwMDRDMDA2OTAwNjIwMDcyMDA2NTAwNEYwMDY2MDA2NjAwNjkwMDYzMDA2NTAwMjAwMDM3MDAyRTAwMzA+Ci9DcmVhdGlvbkRhdGUoRDoyMDIxMDIyMzExMDgwOS0wMycwMCcpPj4KZW5kb2JqCgp4cmVmCjAgOQowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDAyNzAgMDAwMDAgbiAKMDAwMDAwMDAxOSAwMDAwMCBuIAowMDAwMDAwMTc2IDAwMDAwIG4gCjAwMDAwMDA0MzggMDAwMDAgbiAKMDAwMDAwMDE5NSAwMDAwMCBuIAowMDAwMDAwMjE3IDAwMDAwIG4gCjAwMDAwMDA1MzYgMDAwMDAgbiAKMDAwMDAwMDYxOSAwMDAwMCBuIAp0cmFpbGVyCjw8L1NpemUgOS9Sb290IDcgMCBSCi9JbmZvIDggMCBSCi9JRCBbIDw1RkQ4MDlEMTdFODMwQUU5OTRDODkxNDVBMTMwNUQyQz4KPDVGRDgwOUQxN0U4MzBBRTk5NEM4OTE0NUExMzA1RDJDPiBdCi9Eb2NDaGVja3N1bSAvRDZBQThGQTBBQjMwODg2QkQ5ODU0QzYyMTg5QjI2NDQKPj4Kc3RhcnR4cmVmCjc4NQolJUVPRgo="} |
| users | [{"identify":{"email":"signer1@domain.test"}},{"identify":{"account":"signer1"}}] |
| name | document |
Then the response should have a status code 200
When as user "signer1"
And sending "get" to ocs "/apps/notifications/api/v2/notifications"
Then the response should be a JSON array with the following mandatory values
| key | value |
| ocs | (jq).data\|.[].subject == "admin requested your signature on document"|
And there should be 1 emails in my inbox
And I open the latest email to "signer1@domain.test" with subject "LibreSign: There is a file for you to sign"
Scenario: CRUD of identify methods
Given run the command "libresign:developer:reset --all"
And run the command "libresign:configure:openssl --cn test"
And user "signer1" exists
And as user "admin"
When I send a file to be signed
| file | {"base64":"data:application/pdf;base64,JVBERi0xLjYKJcOkw7zDtsOfCjIgMCBvYmoKPDwvTGVuZ3RoIDMgMCBSL0ZpbHRlci9GbGF0ZURlY29kZT4+CnN0cmVhbQp4nDPQM1Qo5ypUMFAw0DMwslAwtTTVMzIxV7AwMdSzMDNUKErlCtdSyOMyVADBonQuA4iUhaVCLheKYqBIDlw7xLAcuLEgFlwVVwZXmhZXoAIAI+sZGAplbmRzdHJlYW0KZW5kb2JqCgozIDAgb2JqCjg2CmVuZG9iagoKNSAwIG9iago8PAo+PgplbmRvYmoKCjYgMCBvYmoKPDwvRm9udCA1IDAgUgovUHJvY1NldFsvUERGL1RleHRdCj4+CmVuZG9iagoKMSAwIG9iago8PC9UeXBlL1BhZ2UvUGFyZW50IDQgMCBSL1Jlc291cmNlcyA2IDAgUi9NZWRpYUJveFswIDAgNTk1LjI3NTU5MDU1MTE4MSA4NDEuODg5NzYzNzc5NTI4XS9Hcm91cDw8L1MvVHJhbnNwYXJlbmN5L0NTL0RldmljZVJHQi9JIHRydWU+Pi9Db250ZW50cyAyIDAgUj4+CmVuZG9iagoKNCAwIG9iago8PC9UeXBlL1BhZ2VzCi9SZXNvdXJjZXMgNiAwIFIKL01lZGlhQm94WyAwIDAgNTk1IDg0MSBdCi9LaWRzWyAxIDAgUiBdCi9Db3VudCAxPj4KZW5kb2JqCgo3IDAgb2JqCjw8L1R5cGUvQ2F0YWxvZy9QYWdlcyA0IDAgUgovT3BlbkFjdGlvblsxIDAgUiAvWFlaIG51bGwgbnVsbCAwXQo+PgplbmRvYmoKCjggMCBvYmoKPDwvQ3JlYXRvcjxGRUZGMDA0NDAwNzIwMDYxMDA3Nz4KL1Byb2R1Y2VyPEZFRkYwMDRDMDA2OTAwNjIwMDcyMDA2NTAwNEYwMDY2MDA2NjAwNjkwMDYzMDA2NTAwMjAwMDM3MDAyRTAwMzA+Ci9DcmVhdGlvbkRhdGUoRDoyMDIxMDIyMzExMDgwOS0wMycwMCcpPj4KZW5kb2JqCgp4cmVmCjAgOQowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDAyNzAgMDAwMDAgbiAKMDAwMDAwMDAxOSAwMDAwMCBuIAowMDAwMDAwMTc2IDAwMDAwIG4gCjAwMDAwMDA0MzggMDAwMDAgbiAKMDAwMDAwMDE5NSAwMDAwMCBuIAowMDAwMDAwMjE3IDAwMDAwIG4gCjAwMDAwMDA1MzYgMDAwMDAgbiAKMDAwMDAwMDYxOSAwMDAwMCBuIAp0cmFpbGVyCjw8L1NpemUgOS9Sb290IDcgMCBSCi9JbmZvIDggMCBSCi9JRCBbIDw1RkQ4MDlEMTdFODMwQUU5OTRDODkxNDVBMTMwNUQyQz4KPDVGRDgwOUQxN0U4MzBBRTk5NEM4OTE0NUExMzA1RDJDPiBdCi9Eb2NDaGVja3N1bSAvRDZBQThGQTBBQjMwODg2QkQ5ODU0QzYyMTg5QjI2NDQKPj4Kc3RhcnR4cmVmCjc4NQolJUVPRgo="} |
| users | [{"identify":{"email":"signer1@domain.test"}},{"identify":{"account":"signer1"}}] |
| name | document |
And the response should have a status code 200
When sending "get" to ocs "/apps/libresign/api/v1/file/list"
Then the response of file list match with:
"""
{
"data": [
{
"uuid": "<IGNORED>",
"name": "document",
"callback": null,
"request_date": "<IGNORED>",
"file": {
"type": "pdf",
"url": "\/index.php\/apps\/libresign\/pdf\/user\/<IGNORED>",
"nodeId": "<IGNORED>"
},
"signers": [
{
"email": "signer1@domain.test",
"description": null,
"displayName": "signer1@domain.test",
"request_sign_date": "<IGNORED>",
"sign_date": null,
"uid": "",
"signRequestId": "<IGNORED>",
"me": false,
"identifyMethods": [
{
"method": "email",
"mandatory": 1,
"identifiedAtDate": null
}
]
},
{
"email": "",
"description": null,
"displayName": "signer1",
"request_sign_date": "<IGNORED>",
"sign_date": null,
"uid": "signer1",
"signRequestId": "<IGNORED>",
"me": false,
"identifyMethods": [
{
"method": "account",
"mandatory": 1,
"identifiedAtDate": null
}
]
}
],
"status": 2,
"statusText": "pending"
}
],
"pagination": {
"total": 1,
"current": null,
"next": null,
"prev": null,
"last": null,
"first": null
}
}
"""
And I change the file
| uuid | <FILE_UUID> |
| users | [{"identify":{"email":"signer1@domain.test"}}] |
| name | document |
And the response should have a status code 200
When sending "get" to ocs "/apps/libresign/api/v1/file/list"
Then the response of file list match with:
"""
{
"data": [
{
"uuid": "<IGNORED>",
"name": "document",
"callback": null,
"request_date": "<IGNORED>",
"file": {
"type": "pdf",
"url": "\/index.php\/apps\/libresign\/pdf\/user\/<IGNORED>",
"nodeId": "<IGNORED>"
},
"signers": [
{
"email": "signer1@domain.test",
"description": null,
"displayName": "signer1@domain.test",
"request_sign_date": "<IGNORED>",
"sign_date": null,
"uid": "",
"signRequestId": "<IGNORED>",
"me": false,
"identifyMethods": [
{
"method": "email",
"mandatory": 1,
"identifiedAtDate": null
}
]
}
],
"status": 2,
"statusText": "pending"
}
],
"pagination": {
"total": 1,
"current": null,
"next": null,
"prev": null,
"last": null,
"first": null
}
}
"""