add more tests

This commit is contained in:
Uwe Steinmann 2023-03-15 18:14:57 +01:00
parent 2580c56a09
commit 84742f6ab6
4 changed files with 22 additions and 1 deletions

7
tests/test-correspondents.sh Executable file
View 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
View 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 '.'

View File

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

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