Documentation
¶
Overview ¶
Package testutil provides global testing helper functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChecksumZarfYAMLContent ¶ added in v0.75.1
func ChecksumZarfYAMLContent(t *testing.T, pkg v1alpha1.ZarfPackage) string
ChecksumZarfYAMLContent returns sha256(marshal(pkg)) with pkg.Build zeroed. Build carries intrinsically non-reproducible values (timestamp, user, hostname, CLI version) so it is excluded; the result pins everything else and must be stable across build hosts.
func RequireNoBackslashInPackagePaths ¶ added in v0.75.1
func RequireNoBackslashInPackagePaths(t *testing.T, pkg v1alpha1.ZarfPackage)
RequireNoBackslashInPackagePaths asserts every path field serialized into a built zarf.yaml uses forward-slash separators, so artifacts are byte-identical across build hosts.
func SetupInMemoryRegistry ¶ added in v0.38.2
SetupInMemoryRegistry sets up an in-memory registry on localhost and returns the address.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.