testrunner

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package testrunner implements runners for end-to-end and fuzz test suites.

Index

Constants

This section is empty.

Variables

View Source
var K3dClusters = []string{"zarf", "zarf-local-storage"} //nolint:gochecknoglobals

K3dClusters are the clusters the zarf module e2e suite creates, named in test/e2e/zarf/testdata/k3d-config.yaml and k3d-config-local-storage.yaml.

Functions

func DeleteK3dClusters added in v0.30.0

func DeleteK3dClusters() error

DeleteK3dClusters removes the clusters the zarf module suite creates, for a run that was interrupted before its own cleanup ran. A cluster that is not there is not an error.

func Fuzz

func Fuzz() error

Fuzz replays the fuzz seed corpus under fuzz/...

func RunE2E

func RunE2E(timeout string, pkg string, extra ...string) error

RunE2E builds the binary the suite drives, then runs go test against pkg.

func RunE2ENoBuild

func RunE2ENoBuild(timeout string, pkg string, extra ...string) error

RunE2ENoBuild runs go test against pkg with the temporary directory configured for e2e suites.

func RunE2EZarf added in v0.30.0

func RunE2EZarf() error

RunE2EZarf builds the zarf Ansible module files, then runs the zarf module e2e suite.

The timeout is generous because the suite stands up two k3d clusters and walks four zarf packages across each of them; the first run also pulls the packages.

func StopBootlooseContainers

func StopBootlooseContainers() error

StopBootlooseContainers force-removes leftover bootloose containers.

func Unit

func Unit() error

Unit runs go test over every package except the e2e suites under test/, which need Docker and runners of their own. Those are driven by Test.EndToEnd* instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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