pulumi/tests/testdata/codegen/transpiled_examples
Fraser Waters d00528918e
Add a conformance test for preserving map keys (#17350)
This adds a conformance test checking we can use map keys like "MY_KEY"
and maintain their casing through program gen. For Python we need to
simplify the type passed to genObjectConsExpression so that we can
reliably determine the target type and check if it's a `TypedDict` or
not, otherwise we might treat it as a plain object and preserve the
keys, instead of `PyName`ing them.

This deletes the "typeddict" test from the codegen tests. Firstly this
is now covered by these conformance tests, secondly it wasn't actually
valid because the schema it was testing against wasn't a valid schema,
and the program snapshot was only how it was because of a bug in
programgen.

That bug is now fixed in this change which fixes
https://github.com/pulumi/pulumi/issues/17294.

---------

Co-authored-by: Julien Poissonnier <julien@caffeine.lu>
2024-10-11 13:34:46 +00:00
..
aws-eks-pp Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
aws-static-website-pp Generate TypedDict input types by default (#16704) 2024-07-23 11:26:54 +00:00
awsx-fargate-pp Generate TypedDict input types by default (#16704) 2024-07-23 11:26:54 +00:00
azure-app-service-pp Fix apply in python (#16941) 2024-08-12 13:07:33 +00:00
azure-container-apps-pp Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
azure-static-website-pp Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
cue-eks-pp Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
cue-random-pp Add an `organization` intrinsic to PCL (#16948) 2024-08-19 03:58:19 +00:00
getting-started-pp Add an `organization` intrinsic to PCL (#16948) 2024-08-19 03:58:19 +00:00
kubernetes-pp Add a conformance test for preserving map keys (#17350) 2024-10-11 13:34:46 +00:00
pulumi-variable-pp Add an `organization` intrinsic to PCL (#16948) 2024-08-19 03:58:19 +00:00
random-pp Add an `organization` intrinsic to PCL (#16948) 2024-08-19 03:58:19 +00:00
readme-pp Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
stackreference-consumer-pp Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
stackreference-producer-pp Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
webserver-json-pp Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
webserver-pp Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00