Skip to content

Commit

Permalink
Add an example for a post using a raw body
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin MOUTY <[email protected]>
  • Loading branch information
Moutyquecloud committed Jun 5, 2023
1 parent 9470a6c commit 6c634e5
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 6c634e5

Please sign in to comment.