Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

219
Views
mountebank : no predicate match for a contains block

Hello i am completely new to mountebank

I am trying write a stub with predicate for the following json blob

{
  "query": {
    "response_type": "code",
    "state": "{\"action\":\"none\",\"newOrg\":true,\"testParams\":{\"orgId\":\"222\",\"trailId\":\"222\",\"isTrail\":true}}"
  },
}

In the above, the orgId will be unique on each request. I need to write a stub with predicate that matches request query which contains orgId as 222

  predicates: [
    {
      contains: {
        query: {
          state: '"orgId":"111"'
        }
      }
    }
  ]

i have written a predicate like above which is giving me no predicate match. The mb docs examples are pretty old and not able find an example for this. can someone help me with this?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!