pulumi/tests
Abhinav Gupta 1158d4acee
all: Drop ioutil
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.
2023-01-06 16:35:14 -08:00
..
benchmarks/go-alias-norm ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
examples ci: Implement smoke tests for pkg/cmd, fix examples 2022-10-17 22:07:47 -07:00
integration all: Drop ioutil 2023-01-06 16:35:14 -08:00
testprovider sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
.gitignore ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
README.md updated readme 2023-01-03 08:30:05 -08: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 ci: adjust test based on new yaml library 2022-12-10 14:26:14 -08:00
go.mod chore: post-release go.mod updates 2023-01-04 15:53:19 +00:00
go.sum Merge #11665 2022-12-16 11:35:04 +00:00
history_test.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07: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 [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
remote_test.go [cli] Test remote operations 2022-11-09 05:29:20 -08:00
roundtrip_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
stack_test.go all: Drop ioutil 2023-01-06 16:35:14 -08: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) && !smoke

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