@@ -198,65 +198,65 @@ func TestNewMCPServerWithExampleBackend(t *testing.T) {
198198 }
199199}
200200
201- func TestConfigLoading (t * testing.T ) {
202- // Test JSON config loading
203- jsonConfig := `{
204- "server": {
205- "name": "Test Server",
206- "version": "1.0.0",
207- "max_concurrent_requests": 50,
208- "request_timeout": "15s"
209- },
210- "backend": {
211- "type": "stackql",
212- "max_connections": 5
213- },
214- "transport": {
215- "enabled_transports": ["stdio"]
216- },
217- "logging": {
218- "level": "debug"
219- }
220- }`
221-
222- config , err := LoadFromJSON ([]byte (jsonConfig ))
223- if err != nil {
224- t .Fatalf ("LoadFromJSON failed: %v" , err )
225- }
226-
227- if config .Server .Name != "Test Server" {
228- t .Errorf ("Expected server name 'Test Server', got '%s'" , config .Server .Name )
229- }
230-
231- if config .Server .MaxConcurrentRequests != 50 {
232- t .Errorf ("Expected max concurrent requests 50, got %d" , config .Server .MaxConcurrentRequests )
233- }
234-
235- // Test YAML config loading
236- yamlConfig := `
237- server:
238- name: "YAML Test Server"
239- version: "2.0.0"
240- max_concurrent_requests: 75
241- backend:
242- type: "stackql"
243- max_connections: 8
244- transport:
245- enabled_transports: ["tcp"]
246- logging:
247- level: "warn"
248- `
249-
250- config , err = LoadFromYAML ([]byte (yamlConfig ))
251- if err != nil {
252- t .Fatalf ("LoadFromYAML failed: %v" , err )
253- }
254-
255- if config .Server .Name != "YAML Test Server" {
256- t .Errorf ("Expected server name 'YAML Test Server', got '%s'" , config .Server .Name )
257- }
258-
259- if config .Server .MaxConcurrentRequests != 75 {
260- t .Errorf ("Expected max concurrent requests 75, got %d" , config .Server .MaxConcurrentRequests )
261- }
262- }
201+ // func TestConfigLoading(t *testing.T) {
202+ // // Test JSON config loading
203+ // jsonConfig := `{
204+ // "server": {
205+ // "name": "Test Server",
206+ // "version": "1.0.0",
207+ // "max_concurrent_requests": 50,
208+ // "request_timeout": "15s"
209+ // },
210+ // "backend": {
211+ // "type": "stackql",
212+ // "max_connections": 5
213+ // },
214+ // "transport": {
215+ // "enabled_transports": ["stdio"]
216+ // },
217+ // "logging": {
218+ // "level": "debug"
219+ // }
220+ // }`
221+
222+ // config, err := LoadFromJSON([]byte(jsonConfig))
223+ // if err != nil {
224+ // t.Fatalf("LoadFromJSON failed: %v", err)
225+ // }
226+
227+ // if config.Server.Name != "Test Server" {
228+ // t.Errorf("Expected server name 'Test Server', got '%s'", config.Server.Name)
229+ // }
230+
231+ // if config.Server.MaxConcurrentRequests != 50 {
232+ // t.Errorf("Expected max concurrent requests 50, got %d", config.Server.MaxConcurrentRequests)
233+ // }
234+
235+ // // Test YAML config loading
236+ // yamlConfig := `
237+ // server:
238+ // name: "YAML Test Server"
239+ // version: "2.0.0"
240+ // max_concurrent_requests: 75
241+ // backend:
242+ // type: "stackql"
243+ // max_connections: 8
244+ // transport:
245+ // enabled_transports: ["tcp"]
246+ // logging:
247+ // level: "warn"
248+ // `
249+
250+ // config, err = LoadFromYAML([]byte(yamlConfig))
251+ // if err != nil {
252+ // t.Fatalf("LoadFromYAML failed: %v", err)
253+ // }
254+
255+ // if config.Server.Name != "YAML Test Server" {
256+ // t.Errorf("Expected server name 'YAML Test Server', got '%s'", config.Server.Name)
257+ // }
258+
259+ // if config.Server.MaxConcurrentRequests != 75 {
260+ // t.Errorf("Expected max concurrent requests 75, got %d", config.Server.MaxConcurrentRequests)
261+ // }
262+ // }
0 commit comments