瀏覽代碼

quick manual tests

Alexander Belanger 5 年之前
父節點
當前提交
064510606c
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      INT_TEST.md

+ 12 - 0
INT_TEST.md

@@ -0,0 +1,12 @@
+Just storing the command-line "integration tests" I've done, which we can use later:
+
+```sh
+# should fail on form decoding
+curl -X POST localhost:8080/api/users 
+
+# should fail on email validation
+curl -d "{\"email\":\"hello\",\"password\":\"hello\"}" -H 'Content-Type: application/json' -X POST localhost:8080/api/users
+
+# should pass (without authentication)
+curl -d "{\"email\":\"belanger@getporter.dev\",\"password\":\"hello\"}" -H 'Content-Type: application/json' -X POST localhost:8080/api/users
+```