Request json one:
{
"request": {
"url": "/services/data/v1/IntegrationTestingOS?offline=true",
"method": "POST",
"headers":{
"X-Http-Method-Override":{"equalTo" : "GET"},
"Content-Type": {"equalTo" : "application/json"},
"X-ReportingParams": {"equalTo" : "Reporting_Params"},
"X-DeviceTimestamp": {"equalTo" : "Device_Timestamp"}
},
"bodyPatterns":[{
"equalToJson":"{\"delta_context\":{\"objs\":{\"profile\":{\"delta\":\"2017-05-25T18:35:10+05:30\"},\"address\":{\"delta\":\"2017-05-25T19:47:41+05:30\"},\"user\":{\"delta\":\"2017-05-25T19:29:28+05:30\"},\"socialnetwork\":{\"delta\":\"2017-05-25T18:24:40+05:30\"}}}}"
}]},
"response": {
"status": 200,
"bodyFileName" : "objectservice_incremental_download_response.json"
}
}
Request json two:
{
"request": {
"url": "/services/data/v1/IntegrationTestingOS?offline=true",
"method": "POST",
"headers":{
"X-Http-Method-Override":{"equalTo" : "GET"},
"Content-Type": {"equalTo" : "application/json"},
"X-ReportingParams": {"equalTo" : "Reporting_Params"},
"X-DeviceTimestamp": {"equalTo" : "Device_Timestamp"}
}},
"response": {
"status": 200,
"bodyFileName" : "objectservice_initial_download.json"
}
}
I have above two requests in my mappings folder.
If i post a request with some body parameters, the second json is getting matched when i expect the first one to be matched.
So with or without body parameters, it matches the send json only.
If i remove the second json, my request which has body matches the first json.
Can someone please help