I recommend updating your Pulumi program to get the secret outside your unit-tested class, then pass it in. Your unit test can do the same thing, except pass in a constant or whatever.
little-cartoon-10569
10/05/2020, 8:52 PM
Since you don't (shouldn't) unit test your Pulumi program (just the code / classes it uses), you completely side-step the problem.