servirtium / servirtium-javascript

Service Virtualized HTTP - to help service test automation stay fast and consistent - for JavaScript/Node projects
https://servirtium.dev
MIT License
5 stars 0 forks source link

Missing per-request verification #3

Open paul-hammant opened 1 year ago

paul-hammant commented 1 year ago

New _getPlaybackRequest(..) needed to be like _getPlaybackResponse(..)

Playback headers, and playback body (normally GETs have no body) need to match what was previously recorded. If they don't servirtium should force a failure in its response, and indicate the root cause in getLastError()

See https://github.com/servirtium/README/blob/master/starting-a-new-impl-step-10.md