pulumi/pkg
stack72 856c43d9c9 Extend integration test framework to allow test setup
This will allow us to run arbitrary commands to setup our tests
e.g. dotnet publish, or go build etc. The framework will allow steps
to be passed as follows:

```
func TestAccAwsCsLambda(t *testing.T) {
	test := getAWSBase(t).
		With(integration.ProgramTestOptions{
			Dir: path.Join(getCwd(t), "..", "..", "aws-cs-lambda"),
			TestPreSteps: map[string][]string{
				"dotnet": {
					"publish", "DotnetLambda/src/DotnetLambda/",
				},
			},
		})

	integration.ProgramTest(t, &test)
}
```

It will use the name in the map as the binary to use then will have
a list of args that get passed to the binary. We can see it will then
run the steps as follows:

```
[ /pulumi/examples/aws-cs-lambda ] running presteps in /var/folders/pz/y1yk28590l72qy1cmxrfndcw0000gn/T/p-it-demo-mbplo-aws-cs-lam-0993f109-318073945
[ /pulumi/examples/aws-cs-lambda ] **** Invoke '/usr/local/bin/dotnet publish DotnetLambda/src/DotnetLambda/' in '/var/folders/pz/y1yk28590l72qy1cmxrfndcw0000gn/T/p-it-demo-mbplo-aws-cs-lam-0993f109-318073945'
[ /pulumi/examples/aws-cs-lambda ] Wrote output to /var/folders/pz/y1yk28590l72qy1cmxrfndcw0000gn/T/p-it-demo-mbplo-aws-cs-lam-0993f109-318073945/command-output/dotnet-publish.20200504-000103.2b492.log
```
2020-05-04 00:06:25 +01:00
..
backend Change the wording of some IO errors 2020-04-22 16:43:44 -07:00
cmd/pulumi Enable fish completions for pulumi cli (#4401) 2020-04-30 15:45:57 +01:00
codegen Add support for NPM Resolutions to nodejs codegen (#4554) 2020-05-02 22:17:31 +01:00
engine Avoid replace on second update with import applied (#4403) 2020-04-15 18:52:40 -07:00
graph Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
npm Don't skip npm tests 2020-04-28 14:13:56 -07:00
operations Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
resource Merge pull request #4489 from pulumi/jaxxstorm/ordered_secrets 2020-04-27 09:36:29 -07:00
secrets Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
testing/integration Extend integration test framework to allow test setup 2020-05-04 00:06:25 +01:00
util Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
go.mod Enable fish completions for pulumi cli (#4401) 2020-04-30 15:45:57 +01:00
go.sum Enable fish completions for pulumi cli (#4401) 2020-04-30 15:45:57 +01:00