Add New MockGCP Resource
OfficialAdd new mock GCP services with confidence.
Software Engineering#go#test fixtures#mockgcp#grpc-gateway#gcp protos#controller crud#lro operations
AuthorGoogleCloudPlatform
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Teams need a reliable way to extend mock GCP behavior so tests and development can exercise new GCP APIs without hitting real endpoints, while keeping logs and recorded expectations stable over time.
Core Features & Use Cases
- Workflow-driven implementation: Provides a step-by-step process to identify the target service and protos, add generation paths when necessary, and create the required mock service and controller code.
- Deterministic HTTP-to-gRPC wiring: Guides how to implement the mock service using grpc-gateway patterns and register the proper clients and operation/LRO routes.
- Stable, scoped golden logs: Instructs how to implement normalize.go with service-host scoping so test fixtures remain consistent and avoid cross-service log corruption.
- Test alignment loop: Recommends capturing real GCP fixtures and iteratively comparing mock behavior until discrepancies are resolved.
Quick Start
Ask for guidance to add support for a new Memcache-related mock resource by following the service/proto identification, implementing service.go and the resource CRUD controller, then running record-gcp and compare-mock to validate and normalize logs.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Add New MockGCP Resource Download link: https://github.com/GoogleCloudPlatform/k8s-config-connector/archive/main.zip#add-new-mockgcp-resource Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.