Documentation
¶
Index ¶
- func CheckDockerRunning(t *testing.T, reason string)
- func CopyDir(src, dst string) error
- func CreateBundleFromTestData(t *testing.T, testDataRelPath, arch string) string
- func CreateBundleFromTestDataCLI(t *testing.T, testDataRelPath, arch string) string
- func CreateBundleFromTestDataCLIWithBinary(t *testing.T, udsPath, testDataRelPath, arch string) string
- func CreateBundleFromTestDataCobra(t *testing.T, testDataRelPath, arch string) string
- func CreateBundleFromTestDataExpectError(t *testing.T, testDataRelPath, arch string) string
- func CreateBundleFromTestDataWithDiagnostics(t *testing.T, testDataRelPath, arch string) (string, string)
- func DeleteK3dCluster(t *testing.T, clusterName string)
- func PrepareBundleDir(t *testing.T, testDataRelPath string) string
- func RunBundleDeploy(t *testing.T, udsPath, artifactPath string)
- func TestDataPath(relPath string) string
- func UDSCLIPath(t *testing.T, runHint string) string
- type ZarfLayoutDigests
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDockerRunning ¶
CheckDockerRunning skips a test when Docker is unavailable.
func CreateBundleFromTestData ¶
CreateBundleFromTestData creates a bundle from a copied test fixture and returns the resulting archive path.
func CreateBundleFromTestDataCLI ¶
CreateBundleFromTestDataCLI creates an artifact with the configured CLI binary.
func CreateBundleFromTestDataCLIWithBinary ¶
func CreateBundleFromTestDataCLIWithBinary(t *testing.T, udsPath, testDataRelPath, arch string) string
CreateBundleFromTestDataCLIWithBinary creates an artifact with a selected CLI binary.
func CreateBundleFromTestDataCobra ¶
CreateBundleFromTestDataCobra creates an artifact through the Cobra command tree.
func CreateBundleFromTestDataExpectError ¶
CreateBundleFromTestDataExpectError creates a bundle from a copied test fixture, asserts that creation fails, and returns the copied fixture directory so callers can assert that no archive was written.
func CreateBundleFromTestDataWithDiagnostics ¶
func CreateBundleFromTestDataWithDiagnostics(t *testing.T, testDataRelPath, arch string) (string, string)
CreateBundleFromTestDataWithDiagnostics creates a bundle from a copied test fixture and returns its archive path and captured diagnostic output.
func DeleteK3dCluster ¶
DeleteK3dCluster removes a test cluster if it exists.
func PrepareBundleDir ¶
PrepareBundleDir copies bundle fixture data into a temporary directory.
func RunBundleDeploy ¶
RunBundleDeploy deploys an artifact with the selected CLI binary.
func TestDataPath ¶
Types ¶
type ZarfLayoutDigests ¶
type ZarfLayoutDigests struct {
// ComponentHexes maps component names to their layer blob's SHA-256 hex digest.
ComponentHexes map[string]string
}
ZarfLayoutDigests holds per-component SHA-256 digests written by WriteZarfLikeOCILayout.
func WriteZarfLikeOCILayout ¶
func WriteZarfLikeOCILayout(t *testing.T, layoutDir string, required, optional []string) ZarfLayoutDigests
WriteZarfLikeOCILayout creates a complete OCI image layout directory in layoutDir that mimics a single-manifest Zarf package. required and optional specify component names. Returns zarfLayoutDigests with a map of component name → sha256 hex digest.