How testing and API fixtures work in Go Fastly
mainGo Fastly uses go-vcr to record and replay API request fixtures. This mechanism improves the speed and portability of integration tests by using recorded YAML files instead of making live API calls every time.
When running tests, the suite typically uses specific service IDs for Delivery, Compute, and Next-Gen WAF (NGWAF) to interact with the Fastly API. If you are a contributor without access to the official test services, you can still update or create fixtures by providing your own service IDs and API key via environment variables.