Jayanth Culli
11/15/2023, 3:43 PM{
"mappings": [
{
"name": "get-credit-report-fail",
"request": {
"method": "GET",
"urlPathPattern": "/pvt/v1/bureau/pan-number",
"queryParameters": {
"uuid": {
"matches": ".*crs-fail"
}
}
},
"response": {
"status": 500
}
},
{
"name": "get-credit-report-success",
"request": {
"method": "GET",
"urlPathPattern": "/pvt/v1/bureau/pan-number"
},
"response": {
"status": 200,
"jsonBody": {
"success": true,
"data": {
"panNumber": "ABCDE1234F",
"vendor": "EQUIFAX"
},
"status_code": 200
}
}
}
]
}
When I try to match it with curl
curl --location 'localhost:8080/pvt/v1/bureau/pan-number?uuid=crs-fail'
it gives the below response
{
"success": true,
"data": {
"panNumber": "ABCDE1234F",
"vendor": "EQUIFAX"
},
"status_code": 200
}
instead of 500 errorLee Turner
11/15/2023, 4:16 PM{
"mappings": [
{
"name": "get-credit-report-fail",
"request": {
"method": "GET",
"urlPattern": "/pvt/v1/bureau/pan-number\\?uuid=.*crs-fail"
},
"response": {
"status": 500
}
},
{
"name": "get-credit-report-success",
"request": {
"method": "GET",
"url": "/pvt/v1/bureau/pan-number"
},
"response": {
"status": 200,
"jsonBody": {
"success": true,
"data": {
"panNumber": "ABCDE1234F",
"vendor": "EQUIFAX"
},
"status_code": 200
}
}
}
]
}
Jayanth Culli
11/17/2023, 7:07 PMLee Turner
11/17/2023, 7:09 PMJayanth Culli
11/18/2023, 4:37 AM