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

Checking text responses #732

Open
michaelboulton opened this issue Nov 6, 2021 · 0 comments
Open

Checking text responses #732

michaelboulton opened this issue Nov 6, 2021 · 0 comments

Comments

@michaelboulton
Copy link
Member

eg

stages:
  - name: check table is returned
    request:
      url: "{host}/example_table"
    response:
      status_code: 200
      text: |-
        +---+---+
        | A | B |
        +---+---+
        | 1 | 2 |
        | 3 | 4 |
        +---+---+

Should be able to check the result as if it was text.

It would be nice if you could also do something like

  response:
    file_body_response: expected.txt

to check against the content of a file.

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

No branches or pull requests

1 participant