Overview of MockGCP
masterMockGCP provides stub implementations of Google Cloud Platform (GCP) APIs specifically for testing Config Connector.
Key Characteristics:
- No Backend: The mocks do not launch actual resources (e.g., creating a mock VM does not launch a real VM).
- Goal: To provide consistent CRUD (Create, Read, Update, Delete) operations that are "good enough" to validate Config Connector providers.
- Implementation Pattern: Most services are implemented using standard GCP protos and
grpc-gatewayto enable HTTP/gRPC interoperability. This allows injecting HTTP handlers directly into serving paths without needing to listen on a real network port.