e2e

package
v0.28.2 Latest Latest
Warning

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

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

Package e2e holds the T3 boot end-to-end tests of docs/design.md "Testing strategy": real QEMU on KVM, swtpm, OVMF and the mkosi image from images/. TestInstallBoot and TestInstallBootSystemdBoot (the installer booted through systemd-boot instead of -kernel) drive them through internal/runtime/qemu and internal/tpm with user networking; the others (TestNetworkIMDS, TestIgnition, TestPersistentEtc, TestKubernetesSysext, TestAttestation) build and start vm-manager serve and drive it through its MCP endpoint, so the guest gets a virtual network with the IMDS; TestAttestation runs three servers in turn (learn, golden, tampered firmware) against a private copy of the image directory's policy.json.

The tests are behind the e2e build tag so that go test ./... and go vet ./... stay fast and hermetic:

make e2e                         # go test -tags e2e -count=1 -timeout 45m -v ./e2e/...
VM_MANAGER_E2E_IMAGE_DIR=... make e2e

They need /dev/kvm and /dev/vhost-vsock, qemu-system-x86_64, swtpm, the OVMF firmware (Arch edk2-ovmf or Debian/Ubuntu ovmf, found the way `vm-manager serve` finds it), sfdisk, and the image artifacts built by `make -C images keys base` (giantswarm-vm-base_<v>.efi and .raw in images/build, or in $VM_MANAGER_E2E_IMAGE_DIR). ssh into the guest is dialed over AF_VSOCK from Go, so no ssh client or systemd-ssh-proxy is needed on the host. A host without them skips with a message saying what is missing. .github/workflows/e2e.yml runs them on a hosted ubuntu-26.04 runner (KVM and vhost_vsock enabled there), see docs/development.md "CI".

On failure the per-test state directory (serial consoles, TPM state, target disk) is kept and its path printed; VM_MANAGER_E2E_KEEP=1 keeps it always.

Jump to

Keyboard shortcuts

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