Tapezilla acts as a betamax cassete repository which can be recoded and replayed via an api
- Wraps a betamax in an API form [https://betamax.readthedocs.io/en/latest/introduction.html]
- Turn betamax recodings of mocks into a containerised mock server for use in dev / qa environments.
-
start in record mode
poetry run fastapi dev record.py
-
register for a new recording
curl -vv -H 'Content-Type: application/json' -XPOST --data '{"name": "vehicle-makes", "method": "get", "url": "https://vpic.nhtsa.dot.gov/api/vehicles/getallmakes?format=json"}' localhost:8000/recordings
-
get the record id for the recording
curl -vv -H 'Content-Type: application/json' -XGET localhost:8000/recordings
-
do the recording
curl -vv -H 'Content-Type: application/json' -XGET localhost:8000/recording/{id}
-
checkin the new cassette and updated recordings.json
-
get the replay
curl -vv -H 'Content-Type: application/json' -XGET localhost:8000/replay/{id}
-
use this in a config url to replay