test

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCLIName

func GetCLIName() string

GetCLIName looks at the OS and CPU architecture to determine which binary needs to be run.

Types

type UDSPKE2ETest

type UDSPKE2ETest struct {
	UDSPKBinPath    string
	Arch            string
	RunClusterTests bool
	CommandLog      []string
}

UDSPKE2ETest Struct holding common fields most of the tests will utilize.

func (*UDSPKE2ETest) CleanFiles

func (e2e *UDSPKE2ETest) CleanFiles(files ...string)

CleanFiles removes files and directories that have been created during the test.

func (*UDSPKE2ETest) CleanupSandboxDir

func (e2e *UDSPKE2ETest) CleanupSandboxDir(t *testing.T)

func (*UDSPKE2ETest) CreateAltZarfYaml added in v0.0.13

func (e2e *UDSPKE2ETest) CreateAltZarfYaml(t *testing.T, name string, dir string)

func (*UDSPKE2ETest) CreateSandboxDir

func (e2e *UDSPKE2ETest) CreateSandboxDir(t *testing.T, subfolders ...string)

func (*UDSPKE2ETest) CreateUDSBundleYaml

func (e2e *UDSPKE2ETest) CreateUDSBundleYaml(t *testing.T, dir string)

func (*UDSPKE2ETest) CreateUDSBundleYamlMultiPackage added in v0.0.13

func (e2e *UDSPKE2ETest) CreateUDSBundleYamlMultiPackage(t *testing.T, dir string)

func (*UDSPKE2ETest) CreateZarfYaml

func (e2e *UDSPKE2ETest) CreateZarfYaml(t *testing.T, dir string)

func (*UDSPKE2ETest) GetGitRevision

func (e2e *UDSPKE2ETest) GetGitRevision() (string, error)

GetGitRevision returns the current git revision

func (*UDSPKE2ETest) GetMismatchedArch

func (e2e *UDSPKE2ETest) GetMismatchedArch() string

GetMismatchedArch determines what architecture our tests are running on, and returns the opposite architecture.

func (*UDSPKE2ETest) GetUdsVersion

func (e2e *UDSPKE2ETest) GetUdsVersion(t *testing.T) string

GetUdsVersion returns the current build version

func (*UDSPKE2ETest) LoadYaml

func (e2e *UDSPKE2ETest) LoadYaml(path string, destVar interface{}) error

func (*UDSPKE2ETest) UDSPK

func (e2e *UDSPKE2ETest) UDSPK(args ...string) (string, string, error)

UDSPK executes a uds-pk command.

func (*UDSPKE2ETest) UDSPKDir

func (e2e *UDSPKE2ETest) UDSPKDir(dir string, args ...string) (string, string, error)

UDSPKDir executes a uds-pk command in a specific directory. relativeBinDir is the relative path to the base repo folder from the directory.

Jump to

Keyboard shortcuts

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