pulumi/tests/integration
bors[bot] f6d669c9e7
Merge #11524 #11586
11524: test: use T.TempDir to create temporary test directory r=Frassle a=Juneezee

# Description

A testing cleanup. 

This pull request replaces `ioutil.TempDir` with `t.TempDir`. We can use the `T.TempDir` function from the `testing` package to create temporary directory. The directory created by `T.TempDir` is automatically removed when the test and all its subtests complete. 

Reference: https://pkg.go.dev/testing#T.TempDir

```go
func TestFoo(t *testing.T) {
	// before
	tmpDir, err := ioutil.TempDir("", "")
	assert.NoError(t, err)
	defer os.RemoveAll(tmpDir)

	// now
	tmpDir := t.TempDir()
}
```

## Checklist

- [ ] ~~I have added tests that prove my fix is effective or that my feature works~~: Tests refactoring only, no new features added.
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [ ] ~~I have updated the [CHANGELOG-PENDING](https://github.com/pulumi/pulumi/blob/master/CHANGELOG_PENDING.md) file with my change~~: This PR is a non user-facing change.
<!--
If the change(s) in this PR is a modification of an existing call to the Pulumi Service,
then the service should honor older versions of the CLI where this change would not exist.
You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] ~~Yes, there are changes in this PR that warrants bumping the Pulumi Service API version~~: N/A
  <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. -->


11586: ci: Fix extraneous alpha draft releases r=AaronFriel a=AaronFriel

The [PR workflow to update Pulumi YAML to 1.0.4](https://github.com/pulumi/pulumi/actions/runs/3642973677) shows that it created a draft release, and this has been the case for all contributors' PRs.

This fixes the extra alpha releases created as a result of pull requests. The job "prepare-release" shouldn't run unless the ci/test label is set, indicating an intent to evaluate the full CI pipeline.


Co-authored-by: Eng Zer Jun <engzerjun@gmail.com>
Co-authored-by: Aaron Friel <mayreply@aaronfriel.com>
2022-12-08 17:57:51 +00:00
..
about ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
aliases ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
cloud_secrets_provider Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
component_provider_schema ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
config_basic ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
config_capture_e2e/nodejs Changing build.proj to run all languages and tests on windows 2020-01-27 21:16:37 +02:00
config_secrets_warn ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
construct_component Phase 3 of the convert mapper 2022-12-01 23:43:43 +00:00
construct_component_error_apply Fix a hang in nodejs remote components when an error is thrown within an apply (#7365) 2021-06-25 18:41:54 -07:00
construct_component_methods Engine and Golang support for shimless providers 2022-11-14 11:25:41 +00:00
construct_component_methods_errors Engine and Golang support for shimless providers 2022-11-14 11:25:41 +00:00
construct_component_methods_resources Engine and Golang support for shimless providers 2022-11-14 11:25:41 +00:00
construct_component_methods_unknown Engine and Golang support for shimless providers 2022-11-14 11:25:41 +00:00
construct_component_output_values Engine and Golang support for shimless providers 2022-11-14 11:25:41 +00:00
construct_component_plain Phase 3 of the convert mapper 2022-12-01 23:43:43 +00:00
construct_component_provider Engine and Golang support for shimless providers 2022-11-14 11:25:41 +00:00
construct_component_slow ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
construct_component_unknown Phase 3 of the convert mapper 2022-12-01 23:43:43 +00:00
construct_nested_component/go [cli] Experimental support for remote operations 2022-10-27 16:15:59 -07:00
custom_timeouts ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
delete_before_create ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
dependency_steps ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
double_pending_delete Do not execute pending deletes at the start of deployment 2022-10-14 15:52:13 +01:00
duplicate_urns ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
dynamic Lower the BrokenDynamicProvider regression test from integration to mock (#7951) 2021-09-10 17:25:48 -04:00
ee_perf Use prefered `new pulumi.Config()` form 2019-01-31 16:11:57 -08:00
empty ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
enums Fix non-determinism in Python dynamic provider serialization (#9656) 2022-05-22 20:15:29 -07:00
exclude_protected Implement the --exclude-protected feature (#8359) 2021-11-15 11:45:14 -08:00
explicit_provider Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
gather_plugin ci: Move several tests out of smoke test jobs 2022-11-03 18:23:02 -07:00
get_created Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
get_resource ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
go [yaml] Update Pulumi YAML to v0.5.8 2022-09-26 17:19:57 -07:00
invalid_package_json Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
large_resource ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
nodejs Bump nodejs integration test version 2022-11-15 16:36:18 -08:00
partial_state ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
partial_values Propagate inputs to outputs during preview. (#3327) 2019-11-11 12:09:34 -08:00
policy ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
printf ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
project_main Add a 'main' test for golang 2022-09-22 14:46:48 +01:00
project_main_abs Enable absolute and relative parent paths for pulumi main (#6734) 2021-04-08 21:39:52 -07:00
project_main_parent/foo Enable absolute and relative parent paths for pulumi main (#6734) 2021-04-08 21:39:52 -07:00
protect_resources ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
provider_secret_config Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
python fix: handle exception for main not found in python (#10617) 2022-09-07 08:42:38 -07:00
python_await [sdk/python] - Await all async tasks (#6606) 2021-03-30 10:56:17 -07:00
query ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
read ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
recreate_resource_check ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
refresh/go Fix regression validating project files with `refresh: always` set 2022-09-22 11:51:54 -07:00
rotate_passphrase ci: Simplify test listing, update go dependencies to 1.18 compat 2022-09-21 09:51:59 -07:00
secret_outputs [sdk/python] Fix secret regression (#5496) 2020-10-01 14:57:51 -07:00
single_resource Suppress JSON outputs in preview correctly (#2771) 2019-05-25 12:10:38 +02:00
stack_bad_parenting Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
stack_component dotnet program-gen now targets .NET 6 (#10143) 2022-07-21 21:04:02 +02:00
stack_dependencies Remove existing lock files 2018-11-12 15:33:58 -08:00
stack_outputs dotnet program-gen now targets .NET 6 (#10143) 2022-07-21 21:04:02 +02:00
stack_parenting Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
stack_project_name Actually fix the naming test (#10554) 2022-08-31 20:52:23 +01:00
stack_reference [yaml] Update Pulumi YAML to v0.5.8 2022-09-26 17:19:57 -07:00
stack_reference_multi/python Regression tests for StackReference in the Python SDK (#3913) 2020-02-17 10:40:46 -08:00
stack_reference_secrets Make getOrganization total, default to 'organization' 2022-09-22 11:06:51 -07:00
steps ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
targets ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
transformations ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
tsconfig Add tsconfig option to specify tsconfig path (#8452) 2021-11-22 11:42:39 -08:00
types ci: Use reduced smoke testing on Windows & macOS targets 2022-09-21 09:55:06 -07:00
unsafe_snapshot_tests/bad_resource Update tests/integration/unsafe_snapshot_tests/bad_resource/resource.ts 2022-09-15 08:00:36 -07:00
.gitignore ci: Enable async component builds 2022-09-14 10:06:05 -07:00
appdash_test.go Add trace proxying to fix sub-process trace collection into files (#7248) 2021-06-10 22:57:18 -04:00
component_setup.sh Engine and Golang support for shimless providers 2022-11-14 11:25:41 +00:00
integration_dotnet_smoke_test.go ci: Move several tests out of smoke test jobs 2022-11-03 18:23:02 -07:00
integration_dotnet_test.go ci: Move several tests out of smoke test jobs 2022-11-03 18:23:02 -07:00
integration_go_smoke_test.go ci: Move several tests out of smoke test jobs 2022-11-03 18:23:02 -07:00
integration_go_test.go test: use T.TempDir to create temporary test directory 2022-12-03 15:17:08 +08:00
integration_nodejs_smoke_test.go ci: Move several tests out of smoke test jobs 2022-11-03 18:23:02 -07:00
integration_nodejs_test.go Merge #11250 #11296 2022-11-09 00:13:47 +00:00
integration_python_smoke_test.go fix(testing): Adds cached python venvs for integration tests 2022-12-06 13:57:07 -05:00
integration_python_test.go ci: Move several tests out of smoke test jobs 2022-11-03 18:23:02 -07:00
integration_smoke_test.go ci: Move several tests out of smoke test jobs 2022-11-03 18:23:02 -07:00
integration_test.go ci: Move several tests out of smoke test jobs 2022-11-03 18:23:02 -07:00
integration_util_test.go ci: Move several tests out of smoke test jobs 2022-11-03 18:23:02 -07:00