@@ -62,7 +62,6 @@ func TestLauncher_ClaudeCode_Env_Bedrock(t *testing.T) {
6262
6363func TestLauncher_ClaudeCode_Env_Vertex (t * testing.T ) {
6464 p := & profiles.ClaudeCodeProfile {}
65- p .SetVertexProjectID ("my-test-project" )
6665 b := profiles.Backend {Type : profiles .BackendVertex , DisplayName : "Google Vertex" }
6766
6867 env , err := p .Env (testHost , b )
@@ -71,9 +70,9 @@ func TestLauncher_ClaudeCode_Env_Vertex(t *testing.T) {
7170 }
7271
7372 want := map [string ]string {
74- "CLOUD_ML_REGION" : "global " ,
73+ "CLOUD_ML_REGION" : "_aperture_auto_vertex_region_ " ,
7574 "CLAUDE_CODE_USE_VERTEX" : "1" ,
76- "ANTHROPIC_VERTEX_PROJECT_ID" : "my-test-project " ,
75+ "ANTHROPIC_VERTEX_PROJECT_ID" : "_aperture_auto_vertex_project_id_ " ,
7776 "ANTHROPIC_VERTEX_BASE_URL" : testHost + "/v1" ,
7877 }
7978 for k , wantV := range want {
@@ -159,16 +158,15 @@ func TestLauncher_OpenCode_Env_Bedrock(t *testing.T) {
159158
160159func TestLauncher_OpenCode_Env_Vertex (t * testing.T ) {
161160 p := & profiles.OpenCodeProfile {}
162- p .SetVertexProjectID ("my-test-project" )
163161 env , err := p .Env (testHost , profiles.Backend {Type : profiles .BackendVertex })
164162 if err != nil {
165163 t .Fatalf ("Env returned error: %v" , err )
166164 }
167- if got := env ["GOOGLE_CLOUD_PROJECT" ]; got != "my-test-project " {
168- t .Errorf ("GOOGLE_CLOUD_PROJECT = %q, want %q" , got , "my-test-project " )
165+ if got := env ["GOOGLE_CLOUD_PROJECT" ]; got != "_aperture_auto_vertex_project_id_ " {
166+ t .Errorf ("GOOGLE_CLOUD_PROJECT = %q, want %q" , got , "_aperture_auto_vertex_project_id_ " )
169167 }
170- if got := env ["GOOGLE_CLOUD_LOCATION" ]; got != "global " {
171- t .Errorf ("GOOGLE_CLOUD_LOCATION = %q, want %q" , got , "global " )
168+ if got := env ["GOOGLE_CLOUD_LOCATION" ]; got != "_aperture_auto_vertex_region_ " {
169+ t .Errorf ("GOOGLE_CLOUD_LOCATION = %q, want %q" , got , "_aperture_auto_vertex_region_ " )
172170 }
173171}
174172
@@ -189,7 +187,6 @@ func TestLauncher_OpenCode_WriteConfig(t *testing.T) {
189187 t .Setenv ("XDG_CONFIG_HOME" , filepath .Join (tmp , ".config" ))
190188
191189 p := & profiles.OpenCodeProfile {}
192- p .SetVertexProjectID ("my-test-project" )
193190
194191 cw , ok := profiles .Profile (p ).(profiles.ConfigWriter )
195192 if ! ok {
@@ -225,8 +222,8 @@ func TestLauncher_OpenCode_WriteConfig(t *testing.T) {
225222 backend : profiles.Backend {Type : profiles .BackendVertex },
226223 wantKey : "google-vertex" ,
227224 wantOptions : map [string ]string {
228- "project" : "my-test-project " ,
229- "location" : "global " ,
225+ "project" : "_aperture_auto_vertex_project_id_ " ,
226+ "location" : "_aperture_auto_vertex_region_ " ,
230227 "baseURL" : testHost + "/v1" ,
231228 },
232229 },
0 commit comments