Documentation
¶
Overview ¶
Package e2e holds the SRS 11.2 reference stack acceptance test: one OpenTofu root module (stack/), a Go API (app/) and the test that drives them against an in-process emulator.
The test is behind the "e2e" build tag so that `go test ./...` is unaffected:
GCPEMU_NET_TESTS=1 go test -tags e2e ./e2e -run TestReferenceStack -timeout 30m -v
It needs a container runtime, OpenTofu (tofu) on PATH and, for steps 2 and later, internet access (GCPEMU_NET_TESTS=1) to download Helm, the Istio release (for its charts) and the Istio images. See README.md ("Reference stack").
TestAutopilot is the SRS 11.4 Autopilot acceptance test: an Autopilot cluster from the autopilot/ module at each supported minor passes Kubernetes conformance (Sonobuoy quick mode), and at the default minor scales past one node, refuses a privileged pod and runs Istio's sidecar injection. It needs GCPEMU_NET_TESTS=1; `task autopilot` runs it.
TestContainerizedLBIngress runs the emulator as its OCI image, with the host's Docker socket, and checks that the host reaches GKE LoadBalancer Services at their ingress (#276), on a VM runtime through the container's published ports (#280). TestContainerizedForwardingRules checks that the host reaches forwarding rules on those ports, with and without the socket (#289). Both need the docker CLI and GCPEMU_NET_TESTS=1 (the image's base is pulled).