mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2026-02-03 09:55:13 +01:00
test(e2e): Bruno tests
This commit is contained in:
parent
a31cde1dd3
commit
fd94b80069
11 changed files with 165 additions and 38 deletions
20
demo-server/bruno-e2e/Protected ED.bru
Normal file
20
demo-server/bruno-e2e/Protected ED.bru
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
meta {
|
||||
name: Protected ED
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: http://localhost:3000/api/protected
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImVkMDEifQ.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjMwMDEiLCJzdWIiOiJiQGIuY29tIiwiZXhwIjoyMDAwMDAwMDAwLCJuYmYiOjE1MTYyMzkwMjJ9.5bFOZqc-lBFy4gFifQ_CTx1A3R6Nry71gdi7KH2GGvTZQC_ZI1vNbqGnWQhpR6n_jUd9ICUc0pPI5iLCB6K1Bg
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
res.body: contains b@b.com
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue