testserver

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

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    a plain HTTP origin serving /healthz
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 on one listener, 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.

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