heaths / azcrypto

Cryptography client for Azure Key Vault SDK for Go
MIT License
2 stars 1 forks source link

Local client assertions fail when -live #32

Closed heaths closed 1 year ago

heaths commented 1 year ago

When -live is specified, any assertions that the local client is nil fail because passthrough mode doesn't invoke the hooks to override the response. At the very least, the assertion needs to be conditioned, but having to use the testTransport adapter provides an opportunity to use it as a proxy and move the response-changing code there...probably.