mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-01 04:13:41 +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>
36 lines
434 B
Plaintext
36 lines
434 B
Plaintext
meta {
|
|
name: echo xml parsed
|
|
type: http
|
|
seq: 4
|
|
}
|
|
|
|
post {
|
|
url: {{host}}/api/echo/xml-parsed
|
|
body: xml
|
|
auth: none
|
|
}
|
|
|
|
body:xml {
|
|
<hello>
|
|
<world>bruno</world>
|
|
</hello>
|
|
}
|
|
|
|
assert {
|
|
res.status: eq 200
|
|
}
|
|
|
|
tests {
|
|
test("should return parsed xml", function() {
|
|
const data = res.getBody();
|
|
expect(res.getBody()).to.eql({
|
|
"hello": {
|
|
"world": [
|
|
"bruno"
|
|
]
|
|
}
|
|
});
|
|
});
|
|
|
|
}
|