mirror of
https://codeberg.org/SeedDMS/paperless
synced 2024-11-26 07:22:08 +00:00
add more tests
This commit is contained in:
parent
2580c56a09
commit
84742f6ab6
7
tests/test-correspondents.sh
Executable file
7
tests/test-correspondents.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
. ./credentials
|
||||
|
||||
curl --silent "${URL}/api/correspondents/" -H "Authorization: ${AUTH}"
|
||||
#| jq '.'
|
||||
|
6
tests/test-documents-like.sh
Executable file
6
tests/test-documents-like.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
. ./credentials
|
||||
|
||||
curl --silent "${URL}/api/documents/?format=json&more_like_id=19245&page=1&page_size=5&ordering=-added" -H "Authorization: ${AUTH}"
|
||||
#| jq '.'
|
|
@ -2,5 +2,6 @@
|
|||
|
||||
. ./credentials
|
||||
|
||||
curl --silent "${URL}/api/documents/?format=json&query=added:%5B-70%20day%20to%20now%5D&is_tagged=0&page=3&page_size=5&ordering=-added" -H "Authorization: ${AUTH}" | jq '.'
|
||||
curl --silent "${URL}/api/documents/?format=json&_query=added:%5B-70%20day%20to%20now%5D&is_tagged=0&document_type__id=1&page=1&page_size=5&ordering=-added" -H "Authorization: ${AUTH}"
|
||||
#| jq '.'
|
||||
#curl --silent "${URL}/api/documents/?format=json&query=barbaradio&page=3&page_size=5&ordering=-added" -H "Authorization: ${AUTH}" | jq '.'
|
||||
|
|
7
tests/test-documenttypes.sh
Executable file
7
tests/test-documenttypes.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
. ./credentials
|
||||
|
||||
curl --silent "${URL}/api/document_types/" -H "Authorization: ${AUTH}"
|
||||
#| jq '.'
|
||||
|
Loading…
Reference in New Issue
Block a user