Skip to content

Commit

Permalink
doc(executor/http): example for a post using a raw body (ovh#677)
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin MOUTY <quentin.mouty@corp.ovh.com>
  • Loading branch information
moutyque authored and Begi committed Jun 15, 2023
1 parent 8a05bc7 commit 9f35ba2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions executors/http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,22 @@ testcases:
statuscode:
from: result.statuscode

- name: post http with body
steps:
- type: http
method: POST
url: https://httpbin.org/post
body: |
{"key": "value"}
headers:
Content-Type: application/json
assertions:
- result.statuscode ShouldEqual 200
- result.bodyjson.url ShouldEqual https://httpbin.org/post
vars:
statuscode:
from: result.statuscode

- name: post http enhanced assertions
steps:
- type: http
Expand Down

0 comments on commit 9f35ba2

Please sign in to comment.