e2e

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 0 Imported by: ? 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

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).

Directories

Path Synopsis
Command app is the Go API of the SRS 11.2 reference stack.
Command app is the Go API of the SRS 11.2 reference stack.

Jump to

Keyboard shortcuts

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