adding a decent structure for testing the restful api from this point forward

This commit is contained in:
shockrah 2020-07-13 20:44:06 -07:00
parent 73f69cec48
commit 0df6702a9d
4 changed files with 35 additions and 0 deletions

View 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

View File

@ -0,0 +1,3 @@
#!/bin/sh
echo Basic tests here

View File

@ -0,0 +1,3 @@
#!/bin/sh
echo Running err cases

View File

@ -0,0 +1,3 @@
#!/bin/sh
echo Running mal cases