Wiremock返回200 OK响应,即使找不到转换器。

huangapple go评论55阅读模式
英文:

Wiremock returns 200 OK response even if transformer not found

问题

如果我在存根定义的 JSON 中意外地输入了错别字,而转换器名称不匹配,仍然会收到 200 响应。这是不符合预期的,也是一个问题。是否有办法让 Wiremock 失败,或者至少记录未找到转换器的情况?

我正在使用 wiremock-standalone 版本 2.35.0。

英文:

If I accidentally make a typo in stub definition JSON and transformer name doesn't match I still get a 200 response. It's unexpected and is a problem. Is there any way to make Wiremock to fail or at least log that transformer was not found?

I'm using wiremock-standalone version 2.35.0.

答案1

得分: 2

目前无法使WireMock在这种情况下返回或记录错误。

您可以在此处提交PR /提出问题:https://github.com/wiremock/wiremock

英文:

There's currently no way to make WireMock return or log an error in this case.

You could submit a PR / raise an issue here: https://github.com/wiremock/wiremock

huangapple
  • 本文由 发表于 2023年2月23日 22:01:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/75545830.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定