acceptancetests

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupRedis

func CleanupRedis(ctx context.Context, c client.Client, namespace string)

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.

func SendToolCall

func SendToolCall(ctx context.Context, httpClient *http.Client, port int32, toolName string, requestID int) (int, []byte)

SendToolCall sends a JSON-RPC tools/call request and returns the HTTP status code and body.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL