pulumi / pulumi-dotnet

.NET support for Pulumi
Apache License 2.0
28 stars 25 forks source link

Add ability to test CustomResourceOptions #137

Open Gadam8 opened 1 year ago

Gadam8 commented 1 year ago

Hello!

Issue details

Currently when running TestWithServiceProviderAsync it isn't possible to test the CustomResourceOptions of a provisioned resource. You can only access the properties of the resource object itself. It would be great to be able to test the Protected value of a resource as well as any AdditionalSecretOutputs.

We have cases where protection of a resource is contingent on a piece of logic, this would be great to add to our unit testing.

Affected area/feature

Pulumi dotnet

Gadam8 commented 1 year ago

I'm more than happy to implement this feature myself, I may just need steering in the right direction etc.