mirror of
https://github.com/lukaszraczylo/harness-sync.git
synced 2026-10-14 00:57:49 +00:00
fix: propagate gateway token; kilo targets opencode.jsonc; goose URL + api_key fix
This commit is contained in:
@@ -117,8 +117,9 @@ func TestGooseRenderProducesCustomProviderFile(t *testing.T) {
|
||||
require.NoError(t, json.Unmarshal(seen[cpDest].Content, &cp))
|
||||
assert.Equal(t, "custom_harness-sync-gateway", cp["name"])
|
||||
assert.Equal(t, "openai", cp["engine"])
|
||||
assert.Equal(t, true, cp["requires_auth"])
|
||||
assert.Equal(t, "CUSTOM_HARNESS_SYNC_GATEWAY_API_KEY", cp["api_key_env"])
|
||||
assert.Equal(t, "tok", cp["api_key"])
|
||||
assert.NotContains(t, cp, "api_key_env")
|
||||
assert.NotContains(t, cp, "requires_auth")
|
||||
models, ok := cp["models"].([]any)
|
||||
require.True(t, ok)
|
||||
require.Len(t, models, 1)
|
||||
|
||||
Reference in New Issue
Block a user