test(e2e): Bruno tests

This commit is contained in:
cduvray 2024-05-13 08:25:29 +02:00
parent a31cde1dd3
commit fd94b80069
11 changed files with 165 additions and 38 deletions

View file

@ -0,0 +1,20 @@
meta {
name: 401 Invalid Token
type: http
seq: 6
}
get {
url: http://localhost:3000/api/protected
body: none
auth: bearer
}
auth:bearer {
token: blablabla.xxxx.xxxx
}
assert {
res.status: eq 401
res.headers['www-authenticate']: eq Bearer error="invalid_token"
}