pulumi/pkg/backend/httpstate
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
..
client Return organizations from Backend.CurrentUser (#9211) 2022-03-31 09:11:19 +01:00
backend.go allow `pulumi destroy -s <stack>` if not in a pulumi project dir (#9918) 2022-07-11 08:28:53 -07:00
backend_test.go test: use `T.Setenv` to set env vars in tests (#10234) 2022-07-24 10:41:44 +01:00
console.go Add support for a PULUMI_CONSOLE_DOMAIN env var (#4410) 2020-04-17 11:50:00 -07:00
console_test.go test: use `T.Setenv` to set env vars in tests (#10234) 2022-07-24 10:41:44 +01:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
policypack.go Respond to SIGINT during plugin install (#9793) 2022-06-09 14:57:56 -07:00
snapshot.go Update error handling (#8406) 2021-11-12 18:37:17 -08:00
stack.go allow `pulumi destroy -s <stack>` if not in a pulumi project dir (#9918) 2022-07-11 08:28:53 -07:00
state.go Remove api/renewLease from startup crit path (#10168) 2022-07-21 15:49:33 -04:00