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