【发布时间】:2020-07-07 09:41:24
【问题描述】:
我在这里很新。我查找在我的 Pattern 中设置 die 可选参数。我已经看过 WireMock 的纪录片了,但是还没有找到合适的。
我的问题是,我可以按任意顺序查询参数吗=?
下一个是,不区分大小写不起作用。我不知道为什么。
{
"priority": 1,
"request": {
"method": "GET",
"headers": {
"Content-Type": {
"equalTo": "application/json",
"caseInsensitive": true
}
},
"urlPattern": "/example\\?name=([a-zA-Z0-9]*)&id=([a-zA-Z0-9]*)"
},
"response": {
"status": 200,
"bodyFileName": "example/test.json"
}
}
【问题讨论】:
-
您能否详细说明“caseInsentive”不起作用的含义?它到底是怎么回事?正如您所说,它仅适用于
Content-Type标头。
标签: wiremock