Skip to content

Commit f56b9f2

Browse files
committed
tests: add example of using env vars as headers values
1 parent b44e602 commit f56b9f2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/using_env_vars/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
URL=https://reqres.in/api/users
22
USERNAME=morpheus
3+
TOKEN=emacs-is-pinky-stop-using-it

tests/using_env_vars/post_create_user.http

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# - Body
99
POST {{URL}}
1010

11-
# Authorization: {{USER}}:{{PASSWORD}}
11+
Authorization: Bearer {{TOKEN}}
1212

1313
{
1414
"name": "{{USERNAME}}",

0 commit comments

Comments
 (0)