Documentation
¶
Index ¶
- func CleanupRedis(ctx context.Context, c client.Client, namespace string)
- func EnsureRedis(ctx context.Context, c client.Client, namespace string, ...)
- func GetOIDCToken(ctx context.Context, httpClient *http.Client, oidcNodePort int32, ...) string
- func SendAuthenticatedToolCallWithSession(ctx context.Context, httpClient *http.Client, port int32, toolName string, ...) (int, []byte, string)
- func SendInitialize(ctx context.Context, httpClient *http.Client, port int32, bearerToken string) (sessionID string)
- func SendToolCall(ctx context.Context, httpClient *http.Client, port int32, toolName string, ...) (int, []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupRedis ¶
CleanupRedis deletes the Redis Deployment and Service.
func EnsureRedis ¶ added in v0.18.0
func EnsureRedis(ctx context.Context, c client.Client, namespace string, timeout, pollingInterval time.Duration)
EnsureRedis creates a Redis Deployment and Service if they don't already exist, then waits for Redis to be ready. Safe to call concurrently from multiple test blocks.
func GetOIDCToken ¶ added in v0.18.0
func GetOIDCToken(ctx context.Context, httpClient *http.Client, oidcNodePort int32, subject string) string
GetOIDCToken fetches a JWT from the mock OIDC server for the given subject.
func SendAuthenticatedToolCallWithSession ¶ added in v0.18.0
func SendAuthenticatedToolCallWithSession( ctx context.Context, httpClient *http.Client, port int32, toolName string, requestID int, bearerToken, sessionID string, ) (int, []byte, string)
SendAuthenticatedToolCallWithSession sends a JSON-RPC tools/call with Bearer token and session ID.
func SendInitialize ¶ added in v0.18.0
func SendInitialize( ctx context.Context, httpClient *http.Client, port int32, bearerToken string, ) (sessionID string)
SendInitialize sends a JSON-RPC initialize request and returns the session ID from the Mcp-Session header. This must be called before tools/call when auth is enabled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.