From ac594d88c0f4af948a5e67d9a3e7c6fac2de9a48 Mon Sep 17 00:00:00 2001 From: shankar0123 Date: Sun, 15 Mar 2026 14:12:42 -0400 Subject: [PATCH] Fix agent registration URL in negative test and connector test path in CI negative_test.go used /api/v1/agents/register but the route is POST /api/v1/agents. ci.yml used ./internal/connector/... which includes packages with no test files causing "no such tool covdata" errors; narrowed to ./internal/connector/issuer/local/... which has tests. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yml | 2 +- internal/integration/negative_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c52b8b8..3033421 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: - name: Go Test with Coverage run: | - go test ./internal/service/... ./internal/api/handler/... ./internal/integration/... ./internal/connector/... -count=1 -cover -coverprofile=coverage.out + go test ./internal/service/... ./internal/api/handler/... ./internal/integration/... ./internal/connector/issuer/local/... -count=1 -cover -coverprofile=coverage.out - name: Check Coverage Thresholds run: | diff --git a/internal/integration/negative_test.go b/internal/integration/negative_test.go index 015cfd3..04f487e 100644 --- a/internal/integration/negative_test.go +++ b/internal/integration/negative_test.go @@ -190,7 +190,7 @@ func TestNegativePaths(t *testing.T) { } agentBytes, _ := json.Marshal(agentBody) - regResp, err := http.Post(server.URL+"/api/v1/agents/register", "application/json", bytes.NewReader(agentBytes)) + regResp, err := http.Post(server.URL+"/api/v1/agents", "application/json", bytes.NewReader(agentBytes)) if err != nil { t.Fatalf("register agent failed: %v", err) }