pulumi/tests
Pat Gavlin 4d3b82cb9f
[cli] Add support for environments (#14140)
These changes add support for ESC environments to the Pulumi CLI. This
involves two major changes:

- Support for the `env` subcommand
- Support for the `environment` stanza in stack config files

The former reuses the command from `esc` itself with a little
rebranding.

The latter adds support to stack config files for an `environment`
property of the form:

```yaml
environment:
  - list
  - of
  - environment
  - names
```

If this property is present in a stack's config file, the CLI will open
the and merge the listed environments during `pulumi up` et. al. If an
object-valued `pulumiConfig` property is present in the opened
environment, its values will be merged on top of the stack's config
prior to whatever operation is to be performed. If an object-valued
`environmentVariables` property is present inthe opened environment, its
values will be published as environment variables prior to the Pulumi
operation. Any values in the open environment's `pulumiConfig` or
`environmentVariables` that are marked as secret will be encrypted in
the resulting config and will be filtered from the command's logs.
2023-10-10 01:35:39 +00:00
..
benchmarks/go-alias-norm deps: Upgrade google.golang.org/{genproto, grpc} 2023-07-27 16:24:33 -07:00
examples PR feedback 2023-07-06 20:40:23 -07:00
integration [cli] Add support for environments (#14140) 2023-10-10 01:35:39 +00:00
testdata Cover bool like and number like values in pulumi:tags test (#14092) 2023-10-07 18:27:03 +00:00
testprovider [engine] Check for old resources first by URN and then aliases (#13883) 2023-09-06 12:17:02 +00:00
.gitignore ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
README.md Rename "Smoke" test to "Acceptance" tests 2023-01-30 15:38:37 -05:00
about_test.go test: fix regex used to test Go version output in about command. (#10499) 2022-08-29 11:53:03 -07:00
config_test.go filestate: Re-add project support 2023-03-31 13:21:36 -07:00
go.mod [cli] Add support for environments (#14140) 2023-10-10 01:35:39 +00:00
go.sum [cli] Add support for environments (#14140) 2023-10-10 01:35:39 +00:00
history_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
login_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
main_test.go Add SelfManaged env vars (#14015) 2023-09-25 14:07:46 +00:00
policy_new_test.go Revert "[policy] support premium policies (#13898)" (#14114) 2023-10-06 09:49:40 +00:00
remote_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
roundtrip_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
smoke_test.go fix run command for run tests (#14117) 2023-10-06 13:54:28 +00:00
stack_test.go Cover bool like and number like values in pulumi:tags test (#14092) 2023-10-07 18:27:03 +00:00

README.md

Integration Tests

This module provides integration tests for the Pulumi CLI.

The tests can be run via:

make test_all

Usage of Go build tags

In order to speed up integration tests in GitHub actions, Go build tags are used to conditionally compile the desired test cases.

// integration_nodejs_test.go
//go:build (nodejs || all) && !xplatform-acceptance

// integration_nodejs_acceptance_test.go
//go:build nodejs || all