mardi 10 avril 2018

Setting up query parameters for mountebank testing

I want to set-up mountebank for the end-point /test?param1=PT-31. Following is the way, I am setting up the predicates in the imposter. However, there does not seem to be a match and I do not get a response.

What am I missing?

        "predicates": [
            {
                "and": [
                    {
                        "deepEquals": {
                            "path": "/trends",
                            "query": {
                                "param1" : [
                                    "PT-31", "PT-32"
                                ]
                            },
                            "method": "GET",
                            "headers": {
                                "Content-Type": "application/json"
                            }
                        }
                    }
                ]
            }
        ]

Aucun commentaire:

Enregistrer un commentaire