问题 Is there an easy way to mock Hashicorp vault in go tests ? I created a service in Go that accesses Vault, and would like to create proper testing for it. I didn't find a simple solution I like (like moto in python). I also tried using a vault in dev mode in docker (take the system test route) but I have trouble writing to it via API. Ideas ? 回答1: Is there an easy way to mock HashiCorp Vault in Go tests? Don't. Use the real thing! HashiCorp helpfully provides utility functions for starting a