Vault Plugin New -
For debugging, Vault plugins log to stderr. Run Vault with:
// backend_test.go func TestBackend(t *testing.T) { b, _ := Factory(context.Background(), &logical.BackendConfig{ StorageView: &logical.InmemStorage{}, }) // Test write req := &logical.Request{ Operation: logical.UpdateOperation, Path: "config", Data: map[string]interface{} "api_key": "test", , Storage: b.(*framework.Backend).Storage(), } vault plugin new