feat: full model catalog (settings enabledModels + custom providers) and provider credentials in spawned containers (keys passthrough + host auth.json bind)
This commit is contained in:
@@ -68,9 +68,17 @@ func TestSpawnerStartHappyPath(t *testing.T) {
|
||||
envLVMHAgent + "=1": true,
|
||||
envLVMHRepo + "=group/project": true,
|
||||
}
|
||||
// provider key passthroughs are environment-dependent; ignore them here
|
||||
passthrough := map[string]bool{
|
||||
"OPENAI_API_KEY": true, "GEMINI_API_KEY": true,
|
||||
"DEEPSEEK_KEY": true, "ANTHROPIC_API_KEY": true,
|
||||
}
|
||||
for _, e := range c.Env {
|
||||
if name, _, ok := strings.Cut(e, "="); ok && passthrough[name] {
|
||||
continue
|
||||
}
|
||||
if !wantEnv[e] {
|
||||
t.Fatalf("unexpected env %q in %v", e, c.Env)
|
||||
t.Fatalf("unexpected env %q", e)
|
||||
}
|
||||
delete(wantEnv, e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user