This message was deleted.
s
This message was deleted.
l
I want to verify that a particular kind of resource is never created, so I have nothing specific to await...
Can I await the entire stack, maybe?
There's no stack outputs since it's a unit test, but if I return
pulumi.runtime.getStackResource().urn.promise().then( ... expectations here ...)
, will that ensure my expectations are applied only after all resources have been created?
Nope. There is no stackResource 😞
f
In this kind of situation, you may want to do something more akin to https://www.pulumi.com/docs/guides/testing/property-testing/ where you’re using policy as code. This way, stack validation policies to check the whole stack.
l
It is a unit test though. I'm checking a ComponentResource doesn't try to create a certain set of nested resources if a certain combination of args is passed in.
No stack, per se...