pulumi/sdk/dotnet/Pulumi
Pat Gavlin 683b4de2f0
Add .NET resource ref unit tests. (#6104)
- Add tests that serialize custom and component resources for targets
  that support resource references
- Add tests that serialize custom and component resources for downlevel
  targets
- Add tests that deserialize known custom and component resources
- Add tests that deserialize missing custom and component resources

These changes also fix a few bugs that were encountered during testing:
- Component resource construction was not supported
- Resources with missing packages could not be deserialized

In the latter case, a missing resource is deserialized as a generic
DependencyResource.

These changes also update the signature of IMocks.NewResourceAsync to
allow the returned ID to be null. This is technically a C# breaking change
with respect to nullability.

Contributes to #5943.

Co-authored-by: Mikhail Shilkov <github@mikhail.io>
2021-01-14 12:24:41 -08:00
..
Core [dotnet] Unsecret and IsSecret implementation for .NET (#6092) 2021-01-12 14:54:08 +00:00
Deployment Enable resource reference feature by default (#5905) 2020-12-10 11:21:05 -07:00
Exceptions Add **preview** .NET Core support for pulumi. (#3399) 2019-10-25 16:59:50 -07:00
Resources Add support for getResource to the .NET SDK (#5817) 2020-11-23 20:55:03 +01:00
Serialization Add .NET resource ref unit tests. (#6104) 2021-01-14 12:24:41 -08:00
Testing Add .NET resource ref unit tests. (#6104) 2021-01-14 12:24:41 -08:00
AssemblyAttributes.cs First-class Stack component for .NET (#3618) 2019-12-23 08:31:12 +01:00
Config.cs Update copyrights (#3557) 2019-11-21 22:46:14 +01:00
Config_Exceptions.cs Add **preview** .NET Core support for pulumi. (#3399) 2019-10-25 16:59:50 -07:00
Extensions.cs Output.apply should lift resources from inner Outputs to the top level output. (#3663) 2019-12-17 14:11:45 -08:00
Log.cs Helper method to log an exception in .NET (#3602) 2019-12-04 11:02:03 +01:00
PublicAPI.Shipped.txt [dotnet] Unsecret and IsSecret implementation for .NET (#6092) 2021-01-12 14:54:08 +00:00
PublicAPI.Unshipped.txt Adding an empty PublicAPI.Unshipped.txt file 2020-04-14 11:17:39 +01:00
Pulumi.csproj [dotnet] Resource package registration in .NET (attributes) (#5875) 2020-12-09 23:28:58 +01:00
Stack.cs Update PulumiStackType comments in dotnet and nodejs (#6028) 2020-12-30 23:02:18 +00:00