utils

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertStringContains

func AssertStringContains(mainString string, subString string, errorMessage string)

AssertStringContains compares two strings and fails if it isn't contained

func RunInstallerWithSurvey

func RunInstallerWithSurvey(arguments []string, path string, commandLineArgs [][]string) string

RunInstallerWithSurvey run the installer given the command arguments, the path where will be launched and the command line values for survey

func RunOSCommandWithArgs

func RunOSCommandWithArgs(command string, arguments []string, path string) string

RunOSCommandWithArgs executes a command in the operating system with arguments

func ValidateInstallConfig

func ValidateInstallConfig(filePath string, expectedData DataToValidate)

ValidateInstallConfig check that the file content is the same of the env variables

func ValidateInstallStateConfig

func ValidateInstallStateConfig(filePath string, expectedData DataToValidate)

ValidateInstallStateConfig check that the file content is the same of the env variables

Types

type DataToValidate

type DataToValidate struct {
	BaseDomain    string
	ClusterName   string
	SSH           string
	PullSecret    string
	ConnectionURI string
}

DataToValidate as expected base domain and cluster name

Jump to

Keyboard shortcuts

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