fix(acp): add IssueSystemTokenWithTx to fakeSupMCPTokens

Fixes interface compliance after I2 added IssueSystemTokenWithTx to
the TokenService interface.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-08 13:34:22 +08:00
parent e4cb55dae2
commit 8b41ff9360
+4
View File
@@ -16,6 +16,7 @@ import (
"time"
"github.com/google/uuid"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgxpool"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -257,6 +258,9 @@ func (f *fakeSupMCPTokens) IssueAdmin(_ context.Context, _ mcp.IssueAdminInput)
func (f *fakeSupMCPTokens) IssueSystemToken(_ context.Context, _ mcp.IssueSystemTokenInput) (mcp.IssueResult, error) {
return mcp.IssueResult{}, nil
}
func (f *fakeSupMCPTokens) IssueSystemTokenWithTx(_ context.Context, _ pgx.Tx, _ mcp.IssueSystemTokenInput) (mcp.IssueResult, error) {
return mcp.IssueResult{}, nil
}
func (f *fakeSupMCPTokens) Authenticate(_ context.Context, _ string) (*mcp.Token, error) {
return nil, nil
}