bruno/packages/bruno-tests/collection/echo/echo multipart.bru

25 lines
318 B
Plaintext
Raw Normal View History

meta {
name: echo multipart
type: http
seq: 8
}
post {
url: {{echo-host}}
body: multipartForm
auth: none
}
body:multipart-form {
foo: {{form-data-key}}
file: @file(bruno.png)
}
assert {
res.body: contains form-data-value
}
script:pre-request {
bru.setVar('form-data-key', 'form-data-value');
}