feat(#1655): updated bruno-tests collection with an "inherit auht" request example

This commit is contained in:
lohxt1 2024-02-26 19:11:11 +05:30
parent 3c2cbe63c4
commit 7a635810b1
2 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,20 @@
meta {
name: inherit Bearer Auth 200
type: http
seq: 2
}
get {
url: {{host}}/api/auth/bearer/protected
body: none
auth: inherit
}
assert {
res.status: 200
res.body.message: Authentication successful
}
script:post-response {
bru.setEnvVar("foo", "bar");
}

View File

@ -3,7 +3,7 @@ headers {
}
auth {
mode: none
mode: bearer
}
auth:basic {
@ -12,7 +12,7 @@ auth:basic {
}
auth:bearer {
token: {{bearerAuthToken}}
token: {{bearer_auth_token}}
}
docs {