You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of now, if mock data doesn't exist for call, the application will run through the normal Faraday request which likely involves a remote call to an external service. In some situations/environments (like vets-api), this will cause an error because the external service is not properly set up, such as in a local dev environment. This also causes confusion, because the user of betamocks might think that betamocks isn't working at all.
New Feature : Default Response
Have a setting that puts betamocks into one of two modes:
"Recording"
"Playback"
"Recording" Mode
Mock responses will be used if found. Otherwise betamocks will act as a middleware pass-through and attempt to record the response.
"Playback" Mode
If betamocks can't find an appropriate response, it will default to some pre-defined response. E.g.
The text was updated successfully, but these errors were encountered:
Context
As of now, if mock data doesn't exist for call, the application will run through the normal
Faraday
request which likely involves a remote call to an external service. In some situations/environments (likevets-api
), this will cause an error because the external service is not properly set up, such as in a local dev environment. This also causes confusion, because the user ofbetamocks
might think thatbetamocks
isn't working at all.New Feature : Default Response
Have a setting that puts
betamocks
into one of two modes:"Recording" Mode
Mock responses will be used if found. Otherwise
betamocks
will act as a middleware pass-through and attempt to record the response."Playback" Mode
If
betamocks
can't find an appropriate response, it will default to some pre-defined response. E.g.The text was updated successfully, but these errors were encountered: