Documentation ¶
Overview ¶
Package test contains e2e tests for the runner
Index ¶
- func GetCLIName() string
- type MaruE2ETest
- func (e2e *MaruE2ETest) CleanFiles(files ...string)
- func (e2e *MaruE2ETest) GetGitRevision() (string, error)
- func (e2e *MaruE2ETest) GetLogFileContents(t *testing.T, stdErr string) string
- func (e2e *MaruE2ETest) GetMaruVersion(t *testing.T) string
- func (e2e *MaruE2ETest) GetMismatchedArch() string
- func (e2e *MaruE2ETest) HelmDepUpdate(t *testing.T, path string)
- func (e2e *MaruE2ETest) Maru(args ...string) (string, string, error)
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
Click to show internal directories.
Click to hide internal directories.