Comments (5)
{
"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.
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.
I'll look into this
from mockserver-client-node.
I have found the issue and I am resolving it.
from mockserver-client-node.
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)
- ClearById is not a function error HOT 2
- Request sequence not found HOT 1
- verifySequenceById is not a function HOT 3
- requestMatcher field not found while retrieving all active expectation created using openAPI HOT 2
- want method which will retrive all active requestMatchers
- Cannot read properties of undefined (reading 'startsWith') HOT 2
- `verifyById` is not a function HOT 5
- Add Promise support
- Copy all proxied requests button
- MockServerClient.clearById typescript definition incorrect
- Wrong types for HttpRequestAndHttpResponse.httpResponse
- ContextPath will missing when run in node
- Possibility of authorization for control plane requests using JWT
- Missing return of embedded promise into retrieveRecordedRequestAndResponses
- Any method of mockserverclient returns 404 when mockserver is deployed as war HOT 1
- Incorrect type definition for verifySequence HOT 1
- Cannot install mockserver-client-node on Ubuntu HOT 1
- Typescript binding for verifySequence is broken
- Set priority within `mockWithCallback`
- Cannot install this version 5.11.2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mockserver-client-node.