pulumi/pkg/testing/integration
Abhinav Gupta 795a3d07be
fix(cli/state rename): Update parent references on rename
If a resource is renamed with `pulumi state rename`,
in addition to updating references in resources that refer to it
as a dependency,
also update references to the resource as a parent of another resource.

Testing:
Includes an integration test that reproduces the panic,
and a unit test that verifies the new behavior at a more isolated level.
To implement the integration test,
a new RunPulumiCommand method was added to ProgramTester
because we don't have other means of running `pulumi state rename`
with ProgramTest.

Resolves #13179
2023-06-16 13:46:35 -07:00
..
command.go Don't disable ambiant providers during tests (#9404) 2022-04-15 11:14:47 +02:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
program.go fix(cli/state rename): Update parent references on rename 2023-06-16 13:46:35 -07:00
program_test.go chore(all): Log to iotest.LogWriter from tests 2023-03-07 11:27:47 -08:00
pulumi.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
s3reporter.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
util.go all: Assert => Assertf 2023-03-03 14:37:43 -08:00