-
-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathhttp_multipart.yml
More file actions
34 lines (34 loc) · 742 Bytes
/
Copy pathhttp_multipart.yml
File metadata and controls
34 lines (34 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
desc: Test using HTTP multipart/form-data
labels:
- http
- openapi3
runners:
req:
endpoint: ${TEST_HTTP_ENDPOINT:-https:example.com}
openapi3: ../openapi3.yml
steps:
fileupload:
desc: Post /upload
req:
/upload:
post:
body:
multipart/form-data:
username: bob
upload0: ../dummy.png
upload1: ../dummy.jpg
test: |
current.res.status == 201
fileupload2:
desc: Post /upload with array
req:
/upload:
post:
body:
multipart/form-data:
username: charlie
file:
- ../dummy.png
- ../dummy.jpg
test: |
current.res.status == 201