mirror of
https://codeberg.org/SeedDMS/paperless
synced 2025-05-30 21:47:27 +00:00
add more tests
This commit is contained in:
parent
e2b20688fe
commit
1bf93e420c
6
tests/test-documents-correspondent-any.sh
Executable file
6
tests/test-documents-correspondent-any.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. ./credentials
|
||||||
|
|
||||||
|
curl --silent "${URL}/api/documents/?format=json&page=1&correspondent__isnull=0&page_size=15&ordering=-added" -H "Authorization: ${AUTH}"
|
||||||
|
#| jq '.'
|
10
tests/test-patch-saved-view.sh
Executable file
10
tests/test-patch-saved-view.sh
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. ./credentials
|
||||||
|
|
||||||
|
curl --silent -X PATCH "${URL}/api/saved_views/" \
|
||||||
|
-H 'Content-Type: application/json' \
|
||||||
|
-H "Authorization: ${AUTH}" \
|
||||||
|
-d '{"id":0,"name":"autoview","username":"admin","password":"admin"}'
|
||||||
|
# | jq '.'
|
||||||
|
|
7
tests/test-storagepaths.sh
Executable file
7
tests/test-storagepaths.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. ./credentials
|
||||||
|
|
||||||
|
curl --silent "${URL}/api/storage_paths/" -H "Authorization: ${AUTH}"
|
||||||
|
#| jq '.'
|
||||||
|
|
6
tests/test-ui-settings.sh
Executable file
6
tests/test-ui-settings.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. ./credentials
|
||||||
|
|
||||||
|
curl --silent "${URL}/api/ui_settings/" -H "Authorization: ${AUTH}" | jq '.'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user