admin管理员组文章数量:1309930
I have an .http file testing an endpoint for an scenario that returns a 400 after failing to validate the parameters (this is expected). But the test is failing because the response is not 2xx (I guess?).
How can I specify that 400 is the expected response for that test so it doesn’t fail?
### Get a 400 error when trying to get a client by names without the required parameters
GET {{host}}/clients/FindByName
Accept: application/json
apiKey: {{apiKey}}
Tenant: {{tenant}}
本文标签: aspnet coreSpecify expected response on http files in Visual Studio 2022Stack Overflow
版权声明:本文标题:asp.net core - Specify expected response on .http files in Visual Studio 2022 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741792305a2397730.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论