diff --git a/packages/bruno-tests/collection/auth/inherit auth/inherit Bearer Auth 200.bru b/packages/bruno-tests/collection/auth/inherit auth/inherit Bearer Auth 200.bru new file mode 100644 index 000000000..50cd99018 --- /dev/null +++ b/packages/bruno-tests/collection/auth/inherit auth/inherit Bearer Auth 200.bru @@ -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"); +} diff --git a/packages/bruno-tests/collection/collection.bru b/packages/bruno-tests/collection/collection.bru index e31b64995..dfcac9859 100644 --- a/packages/bruno-tests/collection/collection.bru +++ b/packages/bruno-tests/collection/collection.bru @@ -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 {