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
Hello!
I'm can't understand whats going on...
But when my requests has array ["REPAIR", "NEED_ADVICE"] - predicate is not matches when I use jsonpath
I'm try with different variants: ["REPAIR", "NEEDADVICE"] not working ["ONE", "ONE_TWO"] is working ["ONE", "TWO", "ONE_TWO"] not working ["ONEONEONEONE", "TWOTWOTWOTWO"] is working ["ONE", "TWO", "THREE"] not working
In my steps to reproduce I'm specially leave jsonpath selector as $ - in my real life this is field from body, but for example this is don't matter :)
Expected behaviour
Predicate is matches, I have response from mountebank
...
Actual behaviour
Predicate is not matches, I have default response
...
Hello!
I'm can't understand whats going on...
But when my requests has array
["REPAIR", "NEED_ADVICE"]
- predicate is not matches when I use jsonpathI'm try with different variants:
["REPAIR", "NEEDADVICE"]
not working["ONE", "ONE_TWO"]
is working["ONE", "TWO", "ONE_TWO"]
not working["ONEONEONEONE", "TWOTWOTWOTWO"]
is working["ONE", "TWO", "THREE"]
not workingIn my steps to reproduce I'm specially leave jsonpath selector as
$
- in my real life this is field from body, but for example this is don't matter :)Expected behaviour
Predicate is matches, I have response from mountebank
...
Actual behaviour
Predicate is not matches, I have default response
...
Steps to reproduce
$ docker run --rm -p 2525:2525 -p 4545:4545 -p 5555:5555 bbyars/mountebank:2.9.1 start --debug --loglevel debug
$ curl -i -X POST -H 'Content-Type: application/json' http://localhost:2525/imposters --data '{ "port": 4545, "protocol": "http", "recordRequests": true, "defaultResponse": { "statusCode": 400, "body": "No suitable mock", "headers": {} }, "stubs": [{ "predicates": [{ "deepEquals": { "body": { "tags": ["REPAIR", "NEED_ADVICE"] } }, "jsonpath": { "selector": "$" } }], "responses": [{ "is": { "body": { "success": true }, "statusCode": 200 } }] }] }'
3
$ curl -i http://localhost:4545/ --data '{"tags": ["REPAIR", "NEED_ADVICE"]}'
...
Software versions used
Log contents in mb.log when running mb --loglevel debug
After one request (like in steps to reproduce) I have this information in imposter
The text was updated successfully, but these errors were encountered: