pulumi/tests/testdata
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_tf Add an envar to disable automatic provider installation (#14083) 2023-10-03 15:35:23 +00:00
bad_random_pp Make convert more lenient 2023-06-08 11:14:31 +01:00
codegen Add a conformance test for preserving map keys (#17350) 2024-10-11 13:34:46 +00:00
component_pp Test components in convert 2023-06-01 20:54:44 +01:00
import_node Fix flakey test (#15311) 2024-01-30 14:08:47 +00:00
random_pp Add per-language smoke tests to the integration tests 2023-05-06 09:23:19 +01:00
random_yaml Add a simple yaml convert smoke test 2023-08-09 17:48:41 +01:00
relative_plugin_node Ensure project plugins are absolute paths (#15470) 2024-02-22 11:43:18 +00:00
simple_schema Add per-language smoke tests to the integration tests 2023-05-06 09:23:19 +01:00
simple_tags Cover bool like and number like values in pulumi:tags test (#14092) 2023-10-07 18:27:03 +00:00