mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-22 16:03:39 +01:00
42 lines
468 B
Plaintext
42 lines
468 B
Plaintext
meta {
|
|
name: process env vars
|
|
type: http
|
|
seq: 4
|
|
}
|
|
|
|
post {
|
|
url: {{host}}/api/echo/json
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
auth:basic {
|
|
username: asd
|
|
password: j
|
|
}
|
|
|
|
auth:bearer {
|
|
token:
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"bark": "{{bark}}",
|
|
"bark2": "{{process.env.PROC_ENV_VAR}}"
|
|
}
|
|
}
|
|
|
|
assert {
|
|
res.status: eq 200
|
|
}
|
|
|
|
tests {
|
|
test("should return json", function() {
|
|
expect(res.getBody()).to.eql({
|
|
"bark": "woof",
|
|
"bark2": "woof"
|
|
});
|
|
});
|
|
|
|
}
|