user name+id now added to params and channels table now accepts channel_name

This commit is contained in:
shockrah
2020-07-30 23:50:03 -07:00
parent b8c4cee57f
commit 000a75c81f
5 changed files with 21 additions and 17 deletions

View File

@@ -24,6 +24,14 @@ delete_channel() {
log_result good_delete_channel 200 $code "$result"
}
send_message() {
kv='{"secret":"secret", "content":"message sample", "channel":123}'
result=$($crl $POST $url/message/send -d "$kv")
code=$(echo "$result" | grep HTTP\/1.1 | awk '{print $2}')
# non-existant channel for now but whatever ignore for now
log_result good_send_message 200 $code "$result"
}
# Dispatcher to run our tests
if [ -z $1 ];then
for cmd in $active_tests;do