I need to use wiremock to test a POST request that's sending data like this:
{
"name": "known fixed value",
"dateOfBirth": 5123456789000,
"email": "known fixed value",
"currentDate": any numeric value,
"status": any text value with alphabets, numbers and symbols
}
The 1st 3 fields, name, dateOfBirth and email are fixed, known values, that don't change from one request to the next.
The last 2 fields, currentDate and status change randomly from one request to the next, but are mandatory fields that can hold any value.
How do I design a mapping that tests this?
Thanks in advance.