pulumi/tests/testdata
Zaid Ajaj de54e1aa47
[docs] Fix generating constructor examples for resources that have numeric enums as input (#16223)
# Description

Fixes #16191 

The original issue is that the intermediate PCL we generate used enum
names instead of enum values for numeric enum inputs. This PR changes it
so that the PCL program now uses the first numeric value for the first
enum case then subsequently fixing downstream program-gen bugs that
didn't know how to handle numeric values as inputs for enums.

## Checklist

- [ ] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [ ] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left
unchecked. -->
- [x] I have added tests that prove my fix is effective or that my
feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the
`changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the
Pulumi Cloud,
then the service should honor older versions of the CLI where this
change would not exist.
You must then bump the API version in
/pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi
Cloud API version
<!-- @Pulumi employees: If yes, you must submit corresponding changes in
the service repo. -->
2024-05-30 22:43:12 +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 [docs] Fix generating constructor examples for resources that have numeric enums as input (#16223) 2024-05-30 22:43:12 +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