pulumi/pkg
Abhinav Gupta 572a610789
test: Attempt to fix TestCreatingProjectWithEmptyConfig
TestCreatingProjectWithEmptyConfig appears to be broken on master:

```
=== Failed
=== FAIL: cmd/pulumi TestCreatingProjectWithEmptyConfig (0.00s)
    new_test.go:330:
        	Error Trace:	/home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/new_test.go:330
        	Error:      	Received unexpected error:
        	            	A project with this name already exists
        	Test:       	TestCreatingProjectWithEmptyConfig

=== FAIL: cmd/pulumi TestCreatingProjectWithEmptyConfig (re-run 1) (0.28s)
    new_test.go:330:
        	Error Trace:	/home/runner/work/pulumi/pulumi/pkg/cmd/pulumi/new_test.go:330
        	Error:      	Received unexpected error:
        	            	A project with this name already exists
        	Test:       	TestCreatingProjectWithEmptyConfig
```

As seen in #13323 and the attempts to land #13322.

To reduce likelihood of "name already exists" errors,
generate a random name for all tests where the name is currently based
on the name of the temporary directory.

Also, change all manually managed temporary directories
(with an unchecked error) to `t.TempDir()` -- making the testing package
handle cleanup of the temporary directories.
2023-06-29 14:39:40 -07:00
..
authhelpers make linter happy 2023-02-08 10:30:10 -08:00
backend Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
cmd/pulumi test: Attempt to fix TestCreatingProjectWithEmptyConfig 2023-06-29 14:39:40 -07:00
codegen Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
engine Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
graph Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
importer Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
operations Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
resource Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
secrets Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
testing/integration ci: Track code coverage 2023-06-28 13:30:13 -07:00
util Improve the stack validation error message 2023-06-28 00:48:19 +02:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
workspace Don't try to install provider during schema loading unless missing 2023-06-28 14:12:17 +01:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod Merge #13078 2023-06-23 15:38:56 +00:00
go.sum cli(state upgrade): Prompt for project names for detached stacks 2023-06-22 13:45:13 -07:00

README.md

pulumi/pkg

While pulumi/sdk maintains strict backwards compatibility guarantees, code under pkg/ is handled more informally: while breaking changes are still discouraged they may happen when they make sense.