mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-13 02:01:01 +01:00
753a576c3c
Safe Mode Sandbox using QuickJS Co-authored-by: Anoop M D <anoop.md1421@gmail.com> Co-authored-by: lohit <lohit.jiddimani@gmail.com>
41 lines
409 B
Plaintext
41 lines
409 B
Plaintext
meta {
|
|
name: getBody
|
|
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 {
|
|
{
|
|
"hello": "bruno"
|
|
}
|
|
}
|
|
|
|
assert {
|
|
res.status: eq 200
|
|
}
|
|
|
|
tests {
|
|
test("res.getBody()", function() {
|
|
const data = res.getBody();
|
|
expect(data).to.eql({
|
|
"hello": "bruno"
|
|
});
|
|
});
|
|
|
|
}
|