fake-gcs-server is a lightweight emulator for the Google Cloud Storage API that allows developers to test applications locally without relying on actual cloud infrastructure. It replicates the behavior of GCS endpoints, enabling operations such as creating buckets, uploading objects, and querying storage data in a controlled environment. The server can be run as a standalone binary or inside a Docker container, making it flexible for integration into development and testing workflows. It also functions as a Go library, allowing it to be embedded directly into test suites for programmatic control. The emulator supports both HTTP and HTTPS configurations and can preload data to simulate real storage scenarios. This makes it particularly useful for integration testing, CI pipelines, and offline development environments.
Features
- Emulation of Google Cloud Storage API endpoints
- Standalone server or Docker-based deployment
- Embeddable Go library for test integration
- Support for HTTP and HTTPS configurations
- Preloading of buckets and objects for testing
- Configurable runtime via flags and environment variables