test

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package test contains e2e tests for the runner

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 Zarf binary needs to be run.

Types

type MaruE2ETest

type MaruE2ETest struct {
	RunnerBinPath     string
	Arch              string
	ApplianceMode     bool
	ApplianceModeKeep bool
	RunClusterTests   bool
	CommandLog        []string
}

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

func (*MaruE2ETest) CleanFiles

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

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

func (*MaruE2ETest) GetGitRevision

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

GetGitRevision returns the current git revision

func (*MaruE2ETest) GetLogFileContents

func (e2e *MaruE2ETest) GetLogFileContents(t *testing.T, stdErr string) string

GetLogFileContents gets the log file contents from a given run's std error.

func (*MaruE2ETest) GetMaruVersion

func (e2e *MaruE2ETest) GetMaruVersion(t *testing.T) string

GetMaruVersion returns the current build version

func (*MaruE2ETest) GetMismatchedArch

func (e2e *MaruE2ETest) GetMismatchedArch() string

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

func (*MaruE2ETest) HelmDepUpdate

func (e2e *MaruE2ETest) HelmDepUpdate(t *testing.T, path string)

HelmDepUpdate runs 'helm dependency update .' on the given path

func (*MaruE2ETest) Maru

func (e2e *MaruE2ETest) Maru(args ...string) (string, string, error)

Maru executes a run command.

Jump to

Keyboard shortcuts

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