pulumi/pkg/testing/integration
Thomas Kappler 14fd3155ce
Honor opts.PreviewCommandlineFlags in preview after refresh (#18063)
`ProgramTestOptions` has this option:
```go
	// PreviewCommandlineFlags specifies flags to add to the `pulumi preview` command line (e.g. "--color=raw")
	PreviewCommandlineFlags []string
```

However, ProgramTest runs `preview` twice, once before create and then
after refresh. The second run ignores `PreviewCommandlineFlags` which I
assume was an oversight. This PR fixes that.

The concrete use case is that I was working on a test where the second
preview run failed but it didn't tell me why; just "_no changes were
expected but changes were proposed_". With this PR I was able to add
`UpdateCommandlineFlags: []string{"--diff"}` to my test and saw the
property that changed unexpectedly.
2024-12-17 19:04:27 +00:00
..
command.go upgrade to latest version of golangci-lint (#15977) 2024-04-19 06:20:33 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
program.go Honor opts.PreviewCommandlineFlags in preview after refresh (#18063) 2024-12-17 19:04:27 +00:00
program_test.go Attempt to run Windows tests on small runners (#15070) 2024-01-05 21:44:04 +00:00
pulumi.go Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00
s3reporter.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
util.go Move `sdk/go/common/tools/path` to `pkg` (#17898) 2024-12-02 17:13:30 +00:00