This sounds like you're treating your Pulumi project as a unit. Speaking from experience, this isn't going to be easy, and it's not the intended use of unit tests. Projects aren't smallest-feasible-functional-units, which is what you should be targettng in unit tests.
little-cartoon-10569
09/15/2022, 8:12 PM
You want a full system test for this.
little-cartoon-10569
09/15/2022, 8:13 PM
You could use automation-api to create a test harness, wrapping a standalone Pulumi project and doing this sort of thing.