diff --git a/core/providers/anthropic/chat_test.go b/core/providers/anthropic/chat_test.go index ca300c7fba..04df3bd02f 100644 --- a/core/providers/anthropic/chat_test.go +++ b/core/providers/anthropic/chat_test.go @@ -85,7 +85,7 @@ func TestToAnthropicChatRequest_CachingDeterminism(t *testing.T) { Model: "claude-sonnet-4-20250514", Input: []schemas.ChatMessage{{ Role: schemas.ChatMessageRoleUser, - Content: &schemas.ChatMessageContent{ContentStr: schemas.Ptr("test")}, + Content: &schemas.ChatMessageContent{ContentStr: new("test")}, }}, Params: &schemas.ChatParameters{ Tools: []schemas.ChatTool{{ diff --git a/transports/bifrost-http/lib/validator_test.go b/transports/bifrost-http/lib/validator_test.go index afac1d4975..e0cbcd8e4b 100644 --- a/transports/bifrost-http/lib/validator_test.go +++ b/transports/bifrost-http/lib/validator_test.go @@ -680,17 +680,15 @@ func TestValidateConfigSchema_MCPClientConfig_Valid_Stdio(t *testing.T) { } } -func TestValidateConfigSchema_MCPClientConfig_Valid_Websocket(t *testing.T) { - // Valid MCP client config with websocket connection type +func TestValidateConfigSchema_MCPClientConfig_Valid_Sse(t *testing.T) { + // Valid MCP client config with sse connection type validConfig := `{ "mcp": { "client_configs": [ { "name": "my-mcp-client", - "connection_type": "websocket", - "websocket_config": { - "url": "ws://localhost:8080" - } + "connection_type": "sse", + "connection_string": "http://localhost:8080" } ] } @@ -698,7 +696,7 @@ func TestValidateConfigSchema_MCPClientConfig_Valid_Websocket(t *testing.T) { err := ValidateConfigSchema([]byte(validConfig), loadLocalSchema(t)) if err != nil { - t.Errorf("expected valid MCP client config (websocket) to pass validation, got error: %v", err) + t.Errorf("expected valid MCP client config (sse) to pass validation, got error: %v", err) } } @@ -710,9 +708,7 @@ func TestValidateConfigSchema_MCPClientConfig_Valid_Http(t *testing.T) { { "name": "my-mcp-client", "connection_type": "http", - "http_config": { - "url": "http://localhost:8080" - } + "connection_string": "http://localhost:8080" } ] } @@ -1202,7 +1198,7 @@ func TestValidateConfigSchema_OtelPlugin_Valid(t *testing.T) { "name": "otel", "config": { "collector_url": "http://localhost:4318", - "trace_type": "otel", + "trace_type": "genai_extension", "protocol": "http" } } @@ -1223,7 +1219,7 @@ func TestValidateConfigSchema_OtelPlugin_MissingCollectorUrl(t *testing.T) { "enabled": true, "name": "otel", "config": { - "trace_type": "otel", + "trace_type": "genai_extension", "protocol": "http" } } @@ -1266,7 +1262,7 @@ func TestValidateConfigSchema_OtelPlugin_MissingProtocol(t *testing.T) { "name": "otel", "config": { "collector_url": "http://localhost:4318", - "trace_type": "otel" + "trace_type": "genai_extension" } } ]