pulumi/sdk/go/common/workspace
Eng Zer Jun 19d84ef1f3
test: use `T.Setenv` to set env vars in tests (#10234)
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-07-24 10:41:44 +01:00
..
creds.go Return organizations from Backend.CurrentUser (#9211) 2022-03-31 09:11:19 +01:00
creds_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
loaders.go Switch from golint to revive (#8010) 2021-09-21 10:00:44 -07:00
paths.go allow `pulumi destroy -s <stack>` if not in a pulumi project dir (#9918) 2022-07-11 08:28:53 -07:00
paths_test.go Deprecate Config, replace with StackConfigDir (#9145) 2022-03-13 21:39:22 +00:00
plugins.go Plugin Link (#10146) 2022-07-22 14:17:43 +01:00
plugins_install_nodejs_test.go test: use `T.Setenv` to set env vars in tests (#10234) 2022-07-24 10:41:44 +01:00
plugins_install_python_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
plugins_install_test.go [plugins] Fix plugin reinstallation. (#8892) 2022-02-02 23:10:16 -08:00
plugins_test.go test: use `T.Setenv` to set env vars in tests (#10234) 2022-07-24 10:41:44 +01:00
project.go Plugin Link (#10146) 2022-07-22 14:17:43 +01:00
project_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
settings.go move pkg/workspace -> sdk/go/common/workspace 2020-03-18 14:35:53 -07:00
templates.go Revert "Clone and test pulumi/templates from the current working branch (#9804)" (#9831) 2022-06-10 11:39:54 +01:00
templates_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
workspace.go Improve corrupt workspace settings experience (#8393) 2021-11-11 14:58:39 -08:00