pulumi/pkg/engine/lifecycletest
Fraser Waters bf47e9571f Fix ignoreChanges[idx] resting values to zero
Before this change PropertiesPath.Delete would "delete" locations from
an array by just writing null to them but not changing the size of the
array.

This could result in a deployment that looked like it should have been a
same ending up as an update. For example given a resource `X` with a
property `foo` set to `[1]` if you changed the program to set `foo` to
`[1, 2]` and set `ignoreChanges` to `foo[1]` the deployment would do an
update with `foo` set to `[1, 0]`.

This now errors that the path is invalid, this is similar to how we
error on invalid paths if intermediate objects are missing.
2023-06-06 09:15:42 +01:00
..
analyzer_test.go Fix spelling in 'lifecycletest' package name. (#9939) 2022-06-22 23:18:17 -04:00
delete_before_replace_test.go all: Drop //nolint:goconst 2023-03-09 11:15:21 -08:00
golang_sdk_test.go all: Drop //nolint:goconst 2023-03-09 11:15:21 -08:00
import_test.go This commit adds the `Created` and `Modified` timestamps to pulumi state that are optional. 2023-03-27 09:28:26 -07:00
pending_delete_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
provider_test.go Don't load providers at startup 2023-05-12 10:04:21 +01:00
pulumi_test.go Fix ignoreChanges[idx] resting values to zero 2023-06-06 09:15:42 +01:00
refresh_test.go This commit adds the `Created` and `Modified` timestamps to pulumi state that are optional. 2023-03-27 09:28:26 -07:00
resource_reference_test.go all: Drop //nolint:goconst 2023-03-09 11:15:21 -08:00
step_generator_test.go chore: Renames existing aliases field to AliasURNs 2022-10-11 17:56:32 -04:00
target_test.go Revert change in targeted update behavior. 2023-05-18 15:25:17 -07:00
test_plan.go [snapshot] Add diff benchmarks and more tests 2023-05-10 17:13:20 -07:00
update_plan_test.go Untargeted resources now have update plans. 2023-05-15 07:10:44 -07:00