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 api to specify response code in responseMocker #2227

Closed
asolntsev opened this issue Mar 23, 2023 · 0 comments · Fixed by #2234
Closed

Add api to specify response code in responseMocker #2227

asolntsev opened this issue Mar 23, 2023 · 0 comments · Fixed by #2234
Assignees
Milestone

Comments

@asolntsev
Copy link
Member

asolntsev commented Mar 23, 2023

The problem

I was hoping to test some error states by returning mocked error responses.

Currently responseMocker only allows to specify response body, but not the http status code.

@asolntsev asolntsev added this to the 6.13.0 milestone Mar 23, 2023
@asolntsev asolntsev self-assigned this Mar 27, 2023
asolntsev added a commit that referenced this issue Mar 27, 2023
until now, it was only possible to mock http response with status 200 ("OK"). Now it's possible to mock responses like "BadRequest", "Server error" etc.
@asolntsev asolntsev linked a pull request Mar 27, 2023 that will close this issue
asolntsev added a commit that referenced this issue Mar 28, 2023
until now, it was only possible to mock http response with status 200 ("OK"). Now it's possible to mock responses like "BadRequest", "Server error" etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant