https://pulumi.com logo
#contribute
Title
# contribute
q

quiet-laptop-13439

03/16/2022, 10:29 AM
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

tall-librarian-49374

03/16/2022, 10:46 AM
To be sure - have you seen this?https://www.pulumi.com/docs/guides/testing/unit/
q

quiet-laptop-13439

03/16/2022, 12:09 PM
yes, that's where you mock resources with MockMonitor, not lookups
t

tall-librarian-49374

03/16/2022, 1:13 PM
Lookups are mocked with Call
👍 1
3 Views