我想用随机状态代码(200、500、404 错误)在wiremock 中响应请求,这可能吗?
你能指导我吗?
{
"request": {
"method": "POST",
"urlPath": "/",
"bodyPatterns": [
{
"matches": "abc"
}
]
},
"response": {
"status": 200 || 500 || 404
}
}
我想用随机状态代码(200、500、404 错误)在wiremock 中响应请求,这可能吗?
你能指导我吗?
{
"request": {
"method": "POST",
"urlPath": "/",
"bodyPatterns": [
{
"matches": "abc"
}
]
},
"response": {
"status": 200 || 500 || 404
}
}