test

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: AGPL-3.0 Imports: 14 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 UDSReleaserE2ETest

type UDSReleaserE2ETest struct {
	UDSReleaserBinPath string
	Arch               string
	RunClusterTests    bool
	CommandLog         []string
}

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

func (*UDSReleaserE2ETest) CleanFiles

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

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

func (*UDSReleaserE2ETest) CleanupSandboxDir

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

func (*UDSReleaserE2ETest) CreateSandboxDir

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

func (*UDSReleaserE2ETest) CreateUDSBundleYaml

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

func (*UDSReleaserE2ETest) CreateZarfYaml

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

func (*UDSReleaserE2ETest) GetGitRevision

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

GetGitRevision returns the current git revision

func (*UDSReleaserE2ETest) GetMismatchedArch

func (e2e *UDSReleaserE2ETest) GetMismatchedArch() string

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

func (*UDSReleaserE2ETest) GetUdsVersion

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

GetUdsVersion returns the current build version

func (*UDSReleaserE2ETest) LoadYaml

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

func (*UDSReleaserE2ETest) UDSReleaser

func (e2e *UDSReleaserE2ETest) UDSReleaser(args ...string) (string, string, error)

UDSReleaser executes a uds-releaser command.

func (*UDSReleaserE2ETest) UDSReleaserDir

func (e2e *UDSReleaserE2ETest) UDSReleaserDir(dir string, args ...string) (string, string, error)

UDSReleaserDir executes a uds-releaser 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