Documentation ¶
Index ¶
- func AssertAnnotation(t *testing.T, annotation string, expected string, objectMeta metav1.ObjectMeta, ...)
- func AssertLabel(t *testing.T, label string, expected string, objectMeta metav1.ObjectMeta, ...)
- func AssertSecretData(t *testing.T, key string, expected string, secret *corev1.Secret, ...)
- func AssertTextFilesEqual(t *testing.T, expected string, actual string, message string)
- func AssertYamlEqual(t *testing.T, expected string, actual string, message string, ...)
- func ObjectNameMessage(objectMeta metav1.ObjectMeta, kindMessage string) string
- type FakeResult
- type FakeRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertAnnotation ¶
func AssertAnnotation(t *testing.T, annotation string, expected string, objectMeta metav1.ObjectMeta, kindMessage string)
AssertAnnotation asserts the object has the given annotation value
func AssertLabel ¶
func AssertLabel(t *testing.T, label string, expected string, objectMeta metav1.ObjectMeta, kindMessage string)
AssertLabel asserts the object has the given label value
func AssertSecretData ¶
func AssertSecretData(t *testing.T, key string, expected string, secret *corev1.Secret, kindMessage string)
AssertLabel asserts the object has the given label value
func AssertTextFilesEqual ¶
AssertTextFilesEqual asserts that the expected file matches the actual file contents
func AssertYamlEqual ¶
func AssertYamlEqual(t *testing.T, expected string, actual string, message string, args ...interface{})
AssertYamlEqual validates YAML without worrying about ordering of keys
func ObjectNameMessage ¶
func ObjectNameMessage(objectMeta metav1.ObjectMeta, kindMessage string) string
ObjectNameMessage returns an object name message used in the tests
Types ¶
type FakeRunner ¶
FakeRunner for testing command runners
func (*FakeRunner) ExpectResults ¶
func (f *FakeRunner) ExpectResults(t *testing.T, results ...FakeResult)
Expects expects the given results
Click to show internal directories.
Click to hide internal directories.