testenv

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultWorkspace = "workspace"
View Source
const (

	// Namespace is the namespace used for the epinio server and staging setup
	Namespace = "epinio"
)

Variables

This section is empty.

Functions

func AfterEachSleep

func AfterEachSleep()

func AppRouteFromOutput added in v0.0.22

func AppRouteFromOutput(out string) string

func AssetPath added in v0.0.22

func AssetPath(p ...string) string

AssetPath returns the path to an asset

func BinaryName added in v0.0.22

func BinaryName() string

BinaryName returns the name of the epinio binary for the current platform

func BuildEpinio

func BuildEpinio()

BuildEpinio builds the epinio binaries for the server and if platforms are different also for the CLI

func CheckDependencies

func CheckDependencies() error

func CleanupTmp

func CleanupTmp() (string, error)

Remove all tmp directories from /tmp/epinio-* . Test should try to cleanup after themselves but that sometimes doesn't happen, either because we forgot the cleanup code or because the test failed before that happened. NOTE: This code will create problems if more than one acceptance_suite_test.go is run in parallel (e.g. two PRs on one worker). However we keep it as an extra measure.

func CopyEpinioSettings added in v0.6.0

func CopyEpinioSettings(dir string) (string, error)

CopyEpinioSettings copies the epinio yaml to the given dir

func CreateRegistrySecret

func CreateRegistrySecret()

CreateRegistrySecret creates the docker registry image pull secret

func DeleteTmpDir

func DeleteTmpDir(nodeTmpDir string)

func EnsureDefaultWorkspace

func EnsureDefaultWorkspace(epinioBinary string)

func EpinioBinaryPath added in v0.0.22

func EpinioBinaryPath() string

EpinioBinaryPath returns the absolute path to the dist/epinio binary

func EpinioYAML

func EpinioYAML() string

EpinioYAML returns the absolute path to the epinio settings YAML

func PatchEpinio

func PatchEpinio() (string, error)

func RegistryPassword

func RegistryPassword() string

RegistryPassword returns the docker registry password from the env

func RegistryUsername

func RegistryUsername() string

RegistryUsername returns the docker registry username from the env

func Root

func Root() string

func ServerBinaryName added in v0.0.23

func ServerBinaryName() string

ServerBinaryName returns the name of the epinio binary for the server platform. Currently only linux servers are supported.

func SetRoot

func SetRoot(dir string)

func SetupEnv

func SetupEnv()

func SkipCleanup

func SkipCleanup() bool

SkipCleanup returns true if the file exists, false if some error occurred while checking

func SkipCleanupPath

func SkipCleanupPath() string

func TestAssetPath added in v0.0.23

func TestAssetPath(file string) string

TestAssetPath returns the relative path to the test assets

Types

type EpinioEnv

type EpinioEnv struct {
	machine.Machine

	EpinioUser       string
	EpinioPassword   string
	EpinioAdminToken string
	EpinioUserToken  string
	// contains filtered or unexported fields
}

func New

func New(nodeDir string, rootDir, username, password, adminToken, userToken string) EpinioEnv

type LoadBalancerHostname added in v0.0.23

type LoadBalancerHostname struct {
	Status struct {
		LoadBalancer struct {
			Ingress []struct {
				Hostname string `json:"hostname"`
				IP       string `json:"ip"`
			} `json:"ingress"`
		} `json:"loadBalancer"`
	} `json:"status"`
}

Jump to

Keyboard shortcuts

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