adding a decent structure for testing the restful api from this point forward
This commit is contained in:
parent
73f69cec48
commit
0df6702a9d
26
server/tests/curl-admin.sh
Normal file
26
server/tests/curl-admin.sh
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Details for our bs user when testing things
|
||||||
|
export id=1
|
||||||
|
export secret=secret
|
||||||
|
export name=godrah
|
||||||
|
export joindate=123
|
||||||
|
export status=1
|
||||||
|
export permissions=69
|
||||||
|
|
||||||
|
# This script is basically just a convenient launch pad script for running all
|
||||||
|
# the tests at once
|
||||||
|
# Most tests should be runnable by doing ./script.sh name_of_test
|
||||||
|
|
||||||
|
|
||||||
|
# First the 'good' input tests
|
||||||
|
# This is to say that we get input that:
|
||||||
|
# 1. is properly formatted
|
||||||
|
# 2. has all the info we need & none we don't
|
||||||
|
# 3. has basically nothing malicious about it
|
||||||
|
|
||||||
|
sh ./tests/verify_basic_cases.sh
|
||||||
|
|
||||||
|
sh ./tests/verify_err_cases.sh
|
||||||
|
|
||||||
|
sh ./tests/verify_mal_cases.sh
|
3
server/tests/verify_basic_cases.sh
Normal file
3
server/tests/verify_basic_cases.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo Basic tests here
|
3
server/tests/verify_err_cases.sh
Normal file
3
server/tests/verify_err_cases.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo Running err cases
|
3
server/tests/verify_mal_cases.sh
Normal file
3
server/tests/verify_mal_cases.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo Running mal cases
|
Loading…
Reference in New Issue
Block a user