Api test files for hurl.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# POST to the register endpoint
|
||||
POST http://localhost:3333/register
|
||||
[FormParams]
|
||||
email: jason@debian.org
|
||||
password: supersecretpassword
|
||||
|
||||
# We expect a 200 OK and JSON containing tokens
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
header "Content-Type" contains "application/json"
|
||||
jsonpath "$.access_token" exists
|
||||
jsonpath "$.refresh_token" exists
|
||||
|
||||
# Useful for debugging in tmux:
|
||||
# hurl --verbose test_register.hurl
|
||||
Reference in New Issue
Block a user