Hi, we are looking on how to mock rpc calls in our...
# contribute
q
Hi, we are looking on how to mock rpc calls in our golang tests (mostly for
Lookup*
stuff). We would like to extract
ctx.Invoke()
function and wrap around that in the interface, with
DefaultInvoker
implementation. Would you see this as an acceptable option or can it cause some problems which would make it a no?
t
To be sure - have you seen this?https://www.pulumi.com/docs/guides/testing/unit/
q
yes, that's where you mock resources with MockMonitor, not lookups
t
Lookups are mocked with Call
👍 1