【发布时间】:2021-11-24 01:08:53
【问题描述】:
{
"request": {
"method": "POST",
"urlPathPattern": "/v1/customer"
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"bodyFileName": "data/customer-{{jsonPath request.body '$.cid'}}.json",
"transformers": ["response-template"]
}
}
-
在 Mac 中,它运行良好!
-
在 Linux 中,出现此错误:
<pre> Server Error</pre></p><h3>Caused by:</h3>
<pre>java.lang.RuntimeException: java.io.FileNotFoundException:
/mocks/./__files/data/customer-{{jsonPath request.body '$.cid'}}.json
(No such file or directory)\n
有什么解决方案或解决方法吗?赞赏!
【问题讨论】:
标签: javascript node.js linux wiremock