FitNesseRoot.RestFixtureFitTests.PutTests.content.txt Maven / Gradle / Ivy
!3 PUT
!*** Note
This test shows how to pass bespoke headers in the request. In this specific case, the stub echoes back the 'Echo-Header', so that the
following PUT and GET can match it the response.
***!
|Fit Rest Fixture|http://${jettyHost}:${jettyPort}|
|setBody|name being updated data being updated |
|setHeader|Echo-Header : echoed|
|PUT | /resources/0 | 200 | Echo-Header : echoed | no-body |
|GET | /resources/0 | 200 | Echo-Header : echoed |!-
/resource/name[text()='name being updated']
/resource/data[text()='data being updated']
-!|