|
@@ -1,12 +1,6 @@
|
|
#!/bin/sh
|
|
#!/bin/sh
|
|
-
|
|
|
|
-resp1=$(cat createuser.json | curl -s -H "Content-Type: application/json" localhost:8080/signup --data @- | jq .created)
|
|
|
|
|
|
+set -x
|
|
|
|
+resp1=$(cat createuser.json | curl -s -H "Content-Type: application/json" http://192.168.100.227:8080/signup --data @- | jq .created)
|
|
z=$(echo $resp1 | grep true)
|
|
z=$(echo $resp1 | grep true)
|
|
test -z $z && exit
|
|
test -z $z && exit
|
|
echo User Created: $resp1 | grep true
|
|
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
|
|
|