Coder Social home page Coder Social logo

Comments (5)

jamesdbloom avatar jamesdbloom commented on June 14, 2024
        {
          "method" : "GET",
          "path" : "/app/web-api/projects/1879048400/users",
          "queryStringParameters" : {
            "query" : [ ".*" ]
          }
        }

matches a request with a query string containing a parameter called query, for example, one of the following:

/app/web-api/projects/1879048400/users?query=someRandomValue
/app/web-api/projects/1879048400/users?query=someRandomValue&someOtherQuery=someRandomValue
/app/web-api/projects/1879048400/users?query=

Is that what you expected?

Can you please provide details of the expectations you are creating and requests you sending then I can help you debug your issue.

from mockserver-client-node.

JassiSaini avatar JassiSaini commented on June 14, 2024

I'm also facing a similar issue, using (version 5.3.0)
I'm trying to Retrieve Active Expectations using following code -

HttpRequest request = new HttpRequest ();
Expectation[] activeExpectations = new MockServerClient("localhost",1080).retrieveActiveExpectations(request);

But this doesn't return Expectations with "Query Parameters". Log has following message -

2018-01-04 18:39:31,930 INFO [nioEventLoopGroup-3-1] o.mockserver.mock.HttpStateHandler [?:?] retrieving active_expectations in json that match:
{ }
2018-01-04 18:39:31,935 INFO [nioEventLoopGroup-3-1] o.mockserver.mock.HttpStateHandler [?:?] request:
{ }
did not match expectation: {
"method" : "POST",
"path" : "/Jassi",
"queryStringParameters" : {
"user" : [ "12345" ]
}
}

because:

method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true

Since am not specifying any criteria, I'm expecting it to return all the Expectations, including the ones with QueryParameters.

from mockserver-client-node.

jamesdbloom avatar jamesdbloom commented on June 14, 2024

I'll look into this

from mockserver-client-node.

jamesdbloom avatar jamesdbloom commented on June 14, 2024

I have found the issue and I am resolving it.

from mockserver-client-node.

jamesdbloom avatar jamesdbloom commented on June 14, 2024

It turns out the fix was more complex then I had hoped. It is now fixed in the current snapshot version. I will release a new version in the next few weeks once I have completed work on a UI.

from mockserver-client-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.