pulumi/tests/testprovider
Fraser Waters a0e0208dd1
Change parameterization to be bytes based (#16606)
Making this change has a couple of benefits.

Firstly (and honestly the main one) is it make codegen much simpler. We
just to emit a base64 string and/or other embedded byte array to the
generated SDK. Currently we need emit a full `proto.Value` expression
for each language, and that's not hard but it's also not trivial and
means more combinations of things per test per language.

Secondly it will allow providers to use more efficient encodings of
their parameter than JSON if there is one. I imagine some providers
might make the parameter value a protobuf message and parse that
(similar to what we do for transform functions), but they can easily
fallback to just treating the bytes as a JSON string if they want.

The only downside to this is the value is obfuscated in the generated
SDK and in the state file. Neither of those are really expected to be
viewed by users, so this feels like a minor loss.
2024-07-10 11:15:35 +00:00
..
.gitignore test: schema support for testprovider (#15829) 2024-04-12 20:38:49 +00:00
PulumiPlugin.yaml Engine and Golang support for shimless providers 2022-11-14 11:25:41 +00:00
component.go Test setting and changing providers on component resources via transforms (#16022) 2024-04-23 15:20:43 +00:00
echo.go Change `pulumi refresh` to report diff relative to desired state instead of relative to only output changes (#16146) 2024-06-12 16:17:05 +00:00
fails_on_create.go test: schema support for testprovider (#15829) 2024-04-12 20:38:49 +00:00
fails_on_delete.go Revert "Revert "Run integration tests and dev builds with race detection" (#15998)" (#16148) 2024-05-09 16:15:41 +00:00
main.go Change parameterization to be bytes based (#16606) 2024-07-10 11:15:35 +00:00
random.go Change `pulumi refresh` to report diff relative to desired state instead of relative to only output changes (#16146) 2024-06-12 16:17:05 +00:00