LukeMathWalker / wiremock-rs

HTTP mocking to test Rust applications.
Apache License 2.0
607 stars 69 forks source link

handle case sensitive query param #121

Closed yanns closed 1 year ago

yanns commented 1 year ago

When I send the following request:

            .client
            .get(url)
            .query(&[
                ("limit", limit),
                ("withTotal", "false".to_string()),
            ])

Using the following does not work:

        .and(query_param("limit", "2"))
        .and(query_param("withTotal", "false"))

although the query param withTotal exists:

Received requests:
- Request #1
    GET http://localhost/reference-service-integration-tests/products?where=id+in+%28%22p-1%22%2C%22p-2%22%29&limit=2&withTotal=false

If I use withtotal instead of withTotal, the test is working.

yanns commented 1 year ago

False alert, another matcher was interfering.