You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When invoking verify with atLeast > 160, the text in the response "but was not found, found 160 other requests" is incorrect and confusing:
curl -X PUT "http://sig2-mock-server:1080/mockserver/verify" -i -d '{
"httpRequest": {
"path": "/mece/b2f5a77a-19ea-484c-ab02-7d16039640fe/b0e5f359-2043-4b2b-a558-043757506272" },
"times": {
"atLeast": 161
}
}'
HTTP/1.1 406 Not Acceptable
content-type: text/plain; charset=utf-8
version: 5.15.0
content-length: 189
x-envoy-upstream-service-time: 19
date: Tue, 22 Aug 2023 14:56:06 GMT
server: envoy
Request not found at least 161 times, expected:<{
"path" : "/mece/b2f5a77a-19ea-484c-ab02-7d16039640fe/b0e5f359-2043-4b2b-a558-043757506272"
}> but was not found, found 160 other requests
What you are trying to do
Verifying that MockServer got at least X requests and if not, know how much it got.
MockServer version
5.15.0
Expected behaviour
I would expect that in case verification failed, the response text will say something like:
Request not found at least 161 times, expected:<{
"path" : "/mece/b2f5a77a-19ea-484c-ab02-7d16039640fe/b0e5f359-2043-4b2b-a558-043757506272"
}> but found 160 requests
The text was updated successfully, but these errors were encountered:
Describe the issue
My MockServer recorded 160 requests properly:
Attached: requests.json.zip
When invoking verify with atLeast <= 160, the API works properly:
When invoking verify with atLeast > 160, the text in the response "but was not found, found 160 other requests" is incorrect and confusing:
What you are trying to do
Verifying that MockServer got at least X requests and if not, know how much it got.
MockServer version
5.15.0
Expected behaviour
I would expect that in case verification failed, the response text will say something like:
The text was updated successfully, but these errors were encountered: