Douglas A 2 anni fa
parent
commit
73bc696150

+ 1 - 1
tests/cmd/auth/createuser.json

@@ -1,4 +1,4 @@
 {
     "username": "mariamaria",
-    "passwordHash": "123456123456"
+    "password": "123456123456"
 }

+ 2 - 8
tests/cmd/auth/createuser.sh

@@ -1,12 +1,6 @@
 #!/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)
 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

+ 2 - 2
tests/cmd/auth/logintest.json

@@ -1,4 +1,4 @@
 {
-        "username": "cmtedouglas",
-        "passwordHash": "d5022a"
+        "username": "mariamaria",
+        "passwordHash": "123456123456"
 }

+ 1 - 1
tests/cmd/auth/logintest.sh

@@ -1,3 +1,3 @@
 #!/bin/sh
 
-cat logintest.json | curl -H "Content-Type: application/json" localhost:8080/login --data @-
+cat logintest.json | curl -H "Content-Type: application/json" http://192.168.100.227:8080/login --data @-