Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix(test): use resolvable URLs in MCP service update test
wizardchen4cb9ed6f3bb8
diff --git a/internal/application/service/mcp_service_test.go b/internal/application/service/mcp_service_test.goindex 8f2d87b12..31be6fbb6 100644--- a/internal/application/service/mcp_service_test.go+++ b/internal/application/service/mcp_service_test.go@@ -183,11 +183,13 @@ func TestUpdateMCPService_AppliesNonScalarUpdateWithoutName(t *testing.T) {ctx := context.Background()svc, repo := newTestService()id := seedService(t, repo, "stored-api", "stored-token")- beforeURL := "https://before.example.com"+ // Use resolvable example.com paths: subdomains like before.example.com fail+ // SSRF DNS checks because they do not resolve to a public IP.+ beforeURL := "https://example.com/before"repo.store[id].Description = "before"repo.store[id].URL = &beforeURL- afterURL := "https://after.example.com"+ afterURL := "https://example.com/after"update := &types.MCPService{ID: id,TenantID: 1,