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

input yaml: id on conversations and requests #40

Merged
merged 1 commit into from
May 13, 2024
Merged

Conversation

giubacc
Copy link
Owner

@giubacc giubacc commented May 10, 2024

user can now specify an arbitrary id for both conversations and requests.
This eases accesses to both conversation's and request's elements.

user can now specify an arbitrary id for both conversations and
requests.
This eases accesses to both conversation's and request's elements.

example of usage on an input yaml::

conversations:
    - host: localhost:8080
      id: conv-1
      requests:
        - method: GET
          id: req-1
          uri: user/info
          queryString: uid=julius
          mock:
            body: "{\"user\":\"mark\", \"status\":\"notFound\"}"
            code: 404
        - method: PUT
          uri: user
          queryString: uid={{req-1.response.body.user}}
          mock:
            body: "{\"user\":\"{{req-1.response.body.user}}\", \"status\":\"created\"}"
            code: 200

Signed-off-by: Giuseppe Baccini <giuseppe.baccini@logobject.ch>
@giubacc giubacc merged commit f2e1f2a into main May 13, 2024
3 checks passed
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.

None yet

1 participant