Rename cloud env vars to use TF_CLOUD prefix

This commit is contained in:
Sebastian Rivera
2022-04-20 13:36:23 -04:00
parent d3e660d912
commit f63ef2b5ef
5 changed files with 27 additions and 27 deletions

View File

@@ -17,7 +17,7 @@ func Test_cloud_organization_env_var(t *testing.T) {
t.Cleanup(cleanup)
cases := testCases{
"with TF_ORGANIZATION set": {
"with TF_CLOUD_ORGANIZATION set": {
operations: []operationSets{
{
prep: func(t *testing.T, orgName, dir string) {
@@ -50,7 +50,7 @@ func Test_cloud_organization_env_var(t *testing.T) {
},
}
testRunner(t, cases, 0, fmt.Sprintf("TF_ORGANIZATION=%s", org.Name))
testRunner(t, cases, 0, fmt.Sprintf("TF_CLOUD_ORGANIZATION=%s", org.Name))
}
func Test_cloud_workspace_name_env_var(t *testing.T) {
@@ -258,7 +258,7 @@ func Test_cloud_null_config(t *testing.T) {
}
testRunner(t, cases, 1,
fmt.Sprintf(`TF_ORGANIZATION=%s`, org.Name),
fmt.Sprintf(`TF_HOSTNAME=%s`, tfeHostname),
fmt.Sprintf(`TF_CLOUD_ORGANIZATION=%s`, org.Name),
fmt.Sprintf(`TF_CLOUD_HOSTNAME=%s`, tfeHostname),
fmt.Sprintf(`TF_WORKSPACE=%s`, wk.Name))
}