add hurl test

This commit is contained in:
Arlan Lloyd
2025-03-30 17:01:09 +00:00
parent 5b1a1de4d1
commit e7b491a7de
2 changed files with 13 additions and 0 deletions

View File

@@ -3,5 +3,6 @@ pkgs.mkShell {
packages = with pkgs; [ packages = with pkgs; [
bun bun
go go
hurl
]; ];
} }

View File

@@ -0,0 +1,12 @@
POST http://localhost:7891/auth/user
{ "name": "pina" }
HTTP 201
[Captures]
session_token: jsonpath "$['token']"
GET http://localhost:7891/api/me
authorization: Bearer {{session_token}}
HTTP 200
[Asserts]
jsonpath "$['sub']" == "pina"
jsonpath "$['iss']" == "keibi-blog"