testserver

command
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 27 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command testserver is the one binary behind every plain helper pod the egress e2e suites stand up. A subcommand picks its behavior, so a single ko image backs all of them and a new origin-style test adds a subcommand here rather than a new image to build and push:

testserver grpc  --listen=:50051   a cleartext HTTP/2 gRPC echo origin
testserver http  --listen=:8080    an HTTP(S) origin serving /healthz, /echoheaders, POST /fetch and /dial
testserver egressprobe --listen=:8080  a client that drives the egress gateway
testserver websocket --listen=:8080  a websocket server that responds to PINGs

Each pod runs exactly one subcommand, so the wire behavior of any given pod is unchanged from when these were separate binaries -- the grpc pod still speaks nothing but cleartext HTTP/2, for instance. Given --tls-cert and --tls-key, http and websocket also serve HTTPS on :8443 beside their cleartext --listen, so one pod answers both schemes for the same name.

The subcommand shape follows Kubernetes' test/images/agnhost: a single extendable CLI whose modes are cobra subcommands, matching the rest of this repo's binaries (see cmd/atenet).

Jump to

Keyboard shortcuts

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