diff --git a/server/tests/curl-admin.sh b/server/tests/curl-admin.sh new file mode 100644 index 0000000..afdb42b --- /dev/null +++ b/server/tests/curl-admin.sh @@ -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 diff --git a/server/tests/verify_basic_cases.sh b/server/tests/verify_basic_cases.sh new file mode 100644 index 0000000..79a248e --- /dev/null +++ b/server/tests/verify_basic_cases.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +echo Basic tests here diff --git a/server/tests/verify_err_cases.sh b/server/tests/verify_err_cases.sh new file mode 100644 index 0000000..f2f406e --- /dev/null +++ b/server/tests/verify_err_cases.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +echo Running err cases diff --git a/server/tests/verify_mal_cases.sh b/server/tests/verify_mal_cases.sh new file mode 100644 index 0000000..c114d50 --- /dev/null +++ b/server/tests/verify_mal_cases.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +echo Running mal cases