mirror of https://github.com/pulumi/pulumi.git
1158d4acee
Stop using io/ioutil across the entire repository. The io/ioutil package was deprecated in Go 1.16 (2021-02) with replacements provided in other packages. Specifically: ioutil.Discard => io.Discard ioutil.NopCloser => io.NopCloser ioutil.ReadAll => io.ReadAll ioutil.ReadFile => os.ReadFile ioutil.TempDir => os.MkdirTemp ioutil.TempFile => os.CreateTemp ioutil.WriteFile => os.WriteFile This change switches all of these entities across the repository. Following this change, the only references to ioutil are in schema files: % rg -l ioutil pkg/codegen/testing/test/testdata/aws-4.26.0.json pkg/codegen/testing/test/testdata/aws-4.36.0.json pkg/codegen/testing/test/testdata/aws-4.37.1.json pkg/codegen/testing/test/testdata/aws-5.4.0.json pkg/codegen/testing/test/testdata/aws-5.16.2.json The bulk of this change was generated automatically with manual touch ups afterwards. |
||
---|---|---|
.. | ||
benchmarks/go-alias-norm | ||
examples | ||
integration | ||
testprovider | ||
.gitignore | ||
README.md | ||
about_test.go | ||
config_test.go | ||
go.mod | ||
go.sum | ||
history_test.go | ||
login_test.go | ||
main_test.go | ||
remote_test.go | ||
roundtrip_test.go | ||
stack_test.go |
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) && !smoke
// integration_nodejs_smoke_test.go
//go:build nodejs || all