add more tests

This commit is contained in:
Uwe Steinmann 2023-10-11 16:39:16 +02:00
parent e2b20688fe
commit 1bf93e420c
4 changed files with 29 additions and 0 deletions

View 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
View 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
View 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
View File

@ -0,0 +1,6 @@
#!/bin/sh
. ./credentials
curl --silent "${URL}/api/ui_settings/" -H "Authorization: ${AUTH}" | jq '.'