Documentation ¶
Index ¶
- Constants
- func CheckForRequiredEnvVars(envs []string)
- func DownloadManifest(deploymentName string) string
- func ExecuteBosh(args []string, timeout time.Duration) *gexec.Session
- func ExecuteBoshNoOutput(args []string, timeout time.Duration) *gexec.Session
- func ExecuteMysqlQuery(deploymentName, instanceIndex, userName, password, sqlQuery string) *gexec.Session
- func ExecuteMysqlQueryAsAdmin(deploymentName, instanceIndex, sqlQuery string) string
- func GetManifestValue(deploymentName, xPath string) string
- func Interpolate(manifestPath string, selector string) string
- func MustSucceed(session *gexec.Session) *gexec.Session
- func ProperYaml(improperYaml string) []byte
- type Instance
- type TestCerts
Constants ¶
const TestFailureMessage = `
*****************************************
TEST FAILURE
*****************************************
`
Variables ¶
This section is empty.
Functions ¶
func CheckForRequiredEnvVars ¶
func CheckForRequiredEnvVars(envs []string)
CheckForRequiredEnvVars asserts that environment variables in envs must be set to a non-empty string. If any environment variable in the slice is not set, an error will be returned denoting which variable is unset.
func DownloadManifest ¶
DownloadManifest downloads the manifest for deployment deploymentName into a temporary file. It returns the filename path as a string. It is up to the caller to delete this file when they are done with the manifest.
func ExecuteBoshNoOutput ¶
func ExecuteMysqlQuery ¶
func ExecuteMysqlQuery(deploymentName, instanceIndex, userName, password, sqlQuery string) *gexec.Session
ExecuteMysqlQuery executes sqlQuery against the MySQL deployment denoted by deploymentName and instance instanceIndex, using credentials in userName and password. It returns a pointer to a gexec.Session to be consumed.
func ExecuteMysqlQueryAsAdmin ¶
ExecuteMysqlQueryAsAdmin is a convenience function for calling ExecuteMysqlQuery as the admin user, asserting that the mysql command exits cleanly and returns the output as a string
func GetManifestValue ¶
GetManifestValue fetches a value from deploymentName's manifest at the path xPath
func Interpolate ¶
Interpolate interpolates the xPath selector against the manifest file at manifestPath and returns the resulting YAML as a string.
func ProperYaml ¶
Types ¶
type Instance ¶
func FindFollower ¶
FindFollower find a follower VM in deploymentName
func FindLeader ¶
FindLeader find a leader VM in deploymentName