mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-25 09:23:17 +01:00
25 lines
318 B
Plaintext
25 lines
318 B
Plaintext
|
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');
|
||
|
}
|