Skip to content

Commit

Permalink
add harness
Browse files Browse the repository at this point in the history
  • Loading branch information
XVincentX committed Jun 30, 2020
1 parent 4de4f52 commit 2a3f5d1
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
====test====
When I send a request to an operation
And the operation has a required query param
And in the request I sent that param is present
And the param I sent was not valid style-wise (ie form instead of pipeDelimited)
Then I should get a 422 response back
And the payload of the response should be in application/problem+json content-type
====spec====
swagger: '2.0'
produces:
- application/json
paths:
"/v1/test":
get:
parameters:
- collectionFormat: csv
in: query
items:
format: uuid
type: string
name: filter[somethingId]
required: false
type: array
responses:
'200':
description: OK
examples:
error: false
====server====
mock -p 4010 ${document}
====command====
curl -sIXGET http://127.0.0.1:4010/pet?name=abc,xyz
====expect====
HTTP/1.1 200 OK

0 comments on commit 2a3f5d1

Please sign in to comment.