Skip to content

Commit 0f7b39d

Browse files
committed
tests: added tests for swappable envs
1 parent c0b9f74 commit 0f7b39d

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

tests/swappable_env/.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
TITLE=Title from .env
2+
BODY=Body from .env

tests/swappable_env/.env.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"TITLE": "Json TITLE",
3+
"BODY": "This Body is from the json env"
4+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Use command :RestSelectEnv ./tests/swappable_env/.env.json
2+
# to select the env file for this request
3+
POST https://jsonplaceholder.typicode.com/posts
4+
Content-type: application/json
5+
6+
{
7+
"title": "{{TITLE}}",
8+
"body": "{{BODY}}",
9+
"userId": 1
10+
}

0 commit comments

Comments
 (0)