Skip to content

Commit 6635d3a

Browse files
committed
test: assert 200 thumbnail for authorized users
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 1a97e73 commit 6635d3a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/integration/features/file/thumbnail.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ Feature: file-thumbnail
1212
And the response should have a status code 200
1313
And sending "get" to ocs "/apps/libresign/api/v1/file/list?details=1"
1414
And fetch field "(FILE_ID)ocs.data.data.0.id" from previous JSON response
15+
And as user "admin"
16+
When sending "get" to ocs "/apps/libresign/api/v1/file/thumbnail/file_id/<FILE_ID>"
17+
Then the response should have a status code 200
18+
And as user "signer1"
19+
When sending "get" to ocs "/apps/libresign/api/v1/file/thumbnail/file_id/<FILE_ID>"
20+
Then the response should have a status code 200
1521
# x=0 triggers a deterministic 400 in controller for authorized users,
1622
# while unauthorized users are blocked earlier by middleware with 403.
1723
And as user "admin"

0 commit comments

Comments
 (0)