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

New step: "Then the response body does not contain JSON" #105

Open
milkovsky opened this issue Nov 11, 2021 · 4 comments · Fixed by #109
Open

New step: "Then the response body does not contain JSON" #105

milkovsky opened this issue Nov 11, 2021 · 4 comments · Fixed by #109

Comments

@milkovsky
Copy link

Missing a step to verify, that data does not exist in the API response.

@christeredvartsen
Copy link
Member

So basically something like:

Then the response body is empty

?

@milkovsky
Copy link
Author

milkovsky commented Nov 14, 2021

@christeredvartsen the response body may be non-empty.
I want to check, whether the JSON body contains a specific value. For example:

Then the response body does not contain JSON
"""
{
  "foo": "bar"
}
"""

@christeredvartsen
Copy link
Member

Ah, I see.

I can try to implement a step that does something like this and see how it ends up. I can have something testable in a few days.

@milkovsky
Copy link
Author

@christeredvartsen I added a small PR with a proof of concept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants