pulumi/pkg/codegen/internal/test/testdata
Justin Van Patten 414ef7e9d0
[programgen/go] Don't change imported resource names (#8353)
When importing a resource in Go, we change resource names with hyphens to snake_case. This happens because we introduced a change that converts the resource name to a valid Go identifier so it can be used as a local variable. But we were also using this converted name as the string resource name, which causes problems with import: the imported resource in the state file has the original resource name, but the generated program uses the converted name, causing Pulumi to delete and recreate the resource when adopting the generated import code.

This change fixes the issue by maintaining the original resource name, and only using the converted name for variables.
2021-11-04 09:28:48 -07:00
..
aws-eks-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
aws-fargate-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
aws-resource-options-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
aws-s3-folder-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
aws-s3-logging-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
aws-secret-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
aws-webserver-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
azure-native-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
azure-sa-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
cyclic-types Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
dash-named-schema Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
dashed-import-schema Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
external-resource-schema Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
functions-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
hyphen-url Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
kubernetes-operator-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
kubernetes-pod-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
kubernetes-template-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
naming-collisions Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
nested-module Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
nested-module-thirdparty Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
output-funcs Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
output-funcs-edgeorder Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
output-funcs-tfbridge20 Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
plain-and-default Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
plain-schema-gh6957 Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
provider-config-schema Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
random-pet-pp [programgen/go] Don't change imported resource names (#8353) 2021-11-04 09:28:48 -07:00
regress-node-8110 Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
replace-on-change Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
resource-args-python Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
resource-args-python-case-insensitive Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
resource-property-overlap Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
schema Validate Name, Version and Enviroment (#7896) 2021-09-17 12:12:22 -07:00
simple-enum-schema Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
simple-methods-schema Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
simple-methods-schema-single-value-returns Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
simple-plain-schema Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
simple-plain-schema-with-root-package Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
simple-resource-schema Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
simple-resource-schema-custom-pypackage-name Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
simple-yaml-schema Fix #8172 (#8320) 2021-11-01 13:21:01 -04:00
.gitignore 5758 for C#/.NET (#7899) 2021-10-18 18:18:15 -04:00
aws.json iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
azure-native.json iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
azure.json iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
kubernetes.json iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
random.json iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
types.json [sdk/dotnet] Fix collections in input unions. (#7601) 2021-07-22 13:11:33 -07:00