|
@@ -0,0 +1,12 @@
|
|
|
+#!/bin/sh
|
|
|
+
|
|
|
+resp1=$(cat createuser.json | curl -s -H "Content-Type: application/json" localhost:8080/signup --data @- | jq .created)
|
|
|
+z=$(echo $resp1 | grep true)
|
|
|
+test -z $z && exit
|
|
|
+echo User Created: $resp1 | grep true
|
|
|
+
|
|
|
+
|
|
|
+resp2=$(cat createuser.json | curl -s -H "Content-Type: application/json" localhost:8080/login --data @- | jq .authenticated)
|
|
|
+z=$(echo $resp2 | grep true)
|
|
|
+test -z $z && exit
|
|
|
+echo Authenticated: $resp2 | grep true
|