Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for request chaining in body payload #780

Merged
merged 8 commits into from
Jul 20, 2022

Conversation

sapiderman
Copy link
Contributor

Monika Pull Request (PR)

What feature/issue does this PR add

  1. Implements Docs: Response data in the next request body #757
  2. Missing example for request chaining in body

How did you implement / how did you fix it

  1. Adding specific example where previous request is used in body
  2. Test the example

How to test

  1. Use the following monika.yaml
probes:
  - id: probe-01
    name: 'body from resonse'
    interval: 10

    requests:
      - url: https://reqres.in/api/users/1
        method: GET
        timeout: 5000
        saveBody: false
        headers:
          Content-Type: application/json; charset=utf-8
      - url: https://reqres.in/api/login
        method: POST
        timeout: 1000
        headers:
          Content-Type: application/json; charset=utf-8
        body:
          email: '{{ responses.[0].body.data.email }}'
          password: password
  1. Then run monika -c monica.yaml -s 0

@codecov
Copy link

codecov bot commented Jul 18, 2022

Codecov Report

Merging #780 (0814976) into main (2b36ad0) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #780   +/-   ##
=======================================
  Coverage   48.60%   48.60%           
=======================================
  Files          69       69           
  Lines        2337     2337           
  Branches      459      459           
=======================================
  Hits         1136     1136           
  Misses       1030     1030           
  Partials      171      171           

@sapiderman sapiderman linked an issue Jul 18, 2022 that may be closed by this pull request
docs/src/pages/guides/examples.md Outdated Show resolved Hide resolved
docs/src/pages/guides/examples.md Outdated Show resolved Hide resolved
docs/src/pages/guides/examples.md Outdated Show resolved Hide resolved
@nicnocquee nicnocquee merged commit d4f0953 into hyperjumptech:main Jul 20, 2022
@sapiderman sapiderman deleted the doc/757-request-chaining branch September 27, 2022 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: Response data in the next request body
5 participants