You've already forked agentic-coding-workflow
修改
This commit is contained in:
@@ -47,9 +47,9 @@ import (
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/google/uuid"
|
||||
"github.com/jackc/pgx/v5/pgxpool"
|
||||
mcpsdk "github.com/modelcontextprotocol/go-sdk/mcp"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
mcpsdk "github.com/modelcontextprotocol/go-sdk/mcp"
|
||||
tcpg "github.com/testcontainers/testcontainers-go/modules/postgres"
|
||||
|
||||
"github.com/yan1h/agent-coding-workflow/internal/audit"
|
||||
@@ -327,9 +327,9 @@ func (s *mcpIntegrationSuite) seedAdditionalProject(t *testing.T, ownerID uuid.U
|
||||
t.Helper()
|
||||
caller := project.Caller{UserID: ownerID, IsAdmin: ownerID == s.adminID}
|
||||
p, err := s.projectSvc.Create(s.ctx, caller, project.CreateProjectInput{
|
||||
Slug: slug,
|
||||
Name: slug,
|
||||
Visibility: project.VisibilityInternal,
|
||||
Slug: slug,
|
||||
Name: slug,
|
||||
Visibility: project.VisibilityInternal,
|
||||
})
|
||||
require.NoError(t, err)
|
||||
return p.ID
|
||||
@@ -342,9 +342,9 @@ func (s *mcpIntegrationSuite) seedPrivateProjectFor(t *testing.T, ownerID uuid.U
|
||||
slug := fmt.Sprintf("private-%s", uuid.New().String()[:8])
|
||||
caller := project.Caller{UserID: ownerID, IsAdmin: false}
|
||||
p, err := s.projectSvc.Create(s.ctx, caller, project.CreateProjectInput{
|
||||
Slug: slug,
|
||||
Name: "Private " + slug,
|
||||
Visibility: project.VisibilityPrivate,
|
||||
Slug: slug,
|
||||
Name: "Private " + slug,
|
||||
Visibility: project.VisibilityPrivate,
|
||||
})
|
||||
require.NoError(t, err)
|
||||
return p.ID, p.Slug
|
||||
@@ -390,8 +390,8 @@ func (s *mcpIntegrationSuite) queryAuditMetadata(t *testing.T, action string) ma
|
||||
|
||||
// bearerRoundTripper injects an Authorization: Bearer header into every request.
|
||||
type bearerRoundTripper struct {
|
||||
inner http.RoundTripper
|
||||
token string
|
||||
inner http.RoundTripper
|
||||
token string
|
||||
}
|
||||
|
||||
func (rt *bearerRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
|
||||
|
||||
Reference in New Issue
Block a user