Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendRandomString ¶
AppendRandomString will generate a random string that begins with prefix. This is useful if you want to make sure that your tests can run at the same time against the same environment without conflicting. This method will use "-" as the separator between the prefix and the random suffix.
func GetBaseFuncName ¶
GetBaseFuncName returns the baseFuncName parsed from the fullFuncName. eg. test/e2e.TestMain will return TestMain.
func MakeK8sNamePrefix ¶
MakeK8sNamePrefix converts each chunk of non-alphanumeric character into a single dash and also convert camelcase tokens into dash-delimited lowercase tokens.
func ObjectNameForTest ¶
ObjectNameForTest generates a random object Name based on the test Name.
func ObjectPrefixForTest ¶
ObjectPrefixForTest returns the Name prefix for this test's random names.