Documentation ¶
Index ¶
- func CreateChannel(clients *test.Clients, channel *v1alpha1.Channel, logger *logging.BaseLogger, ...) error
- func CreateClusterRoleBinding(clients *test.Clients, crb *rbacv1.ClusterRoleBinding, ...) error
- func CreateKubernetesEventSource(clients *test.Clients, source *sourcesv1alpha1.KubernetesEventSource, ...) error
- func CreatePod(clients *test.Clients, pod *corev1.Pod, logger *logging.BaseLogger, ...) error
- func CreateRouteAndConfig(clients *test.Clients, logger *logging.BaseLogger, cleaner *test.Cleaner, ...) error
- func CreateServiceAccount(clients *test.Clients, sa *corev1.ServiceAccount, logger *logging.BaseLogger, ...) error
- func CreateServiceAccountAndBinding(clients *test.Clients, name string, logger *logging.BaseLogger, ...) error
- func CreateSubscription(clients *test.Clients, subs *v1alpha1.Subscription, logger *logging.BaseLogger, ...) error
- func ImagePath(name string) string
- func PodLogs(clients *test.Clients, podName string, containerName string, ...) ([]byte, error)
- func Setup(t *testing.T, logger *logging.BaseLogger) (*test.Clients, *test.Cleaner)
- func TearDown(clients *test.Clients, cleaner *test.Cleaner, logger *logging.BaseLogger)
- func WaitForAllPodsRunning(clients *test.Clients, logger *logging.BaseLogger, namespace string) error
- func WaitForLogContent(clients *test.Clients, logger *logging.BaseLogger, podName string, ...) error
- func WithRouteReady(clients *test.Clients, logger *logging.BaseLogger, cleaner *test.Cleaner, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChannel ¶
func CreateChannel(clients *test.Clients, channel *v1alpha1.Channel, logger *logging.BaseLogger, cleaner *test.Cleaner) error
CreateChannel will create a Channel
func CreateClusterRoleBinding ¶
func CreateClusterRoleBinding(clients *test.Clients, crb *rbacv1.ClusterRoleBinding, logger *logging.BaseLogger, cleaner *test.Cleaner) error
CreateClusterRoleBinding will create a service account binding
func CreateKubernetesEventSource ¶
func CreateKubernetesEventSource(clients *test.Clients, source *sourcesv1alpha1.KubernetesEventSource, logger *logging.BaseLogger, cleaner *test.Cleaner) error
CreateKubernetesEventSource creates a KubernetesEventSource
func CreatePod ¶
func CreatePod(clients *test.Clients, pod *corev1.Pod, logger *logging.BaseLogger, cleaner *test.Cleaner) error
CreatePod will create a Pod
func CreateRouteAndConfig ¶
func CreateRouteAndConfig(clients *test.Clients, logger *logging.BaseLogger, cleaner *test.Cleaner, name string, imagePath string) error
CreateRouteAndConfig will create Route and Config objects using clients. The Config object will serve requests to a container started from the image at imagePath.
func CreateServiceAccount ¶
func CreateServiceAccount(clients *test.Clients, sa *corev1.ServiceAccount, logger *logging.BaseLogger, cleaner *test.Cleaner) error
CreateServiceAccount will create a service account
func CreateServiceAccountAndBinding ¶
func CreateServiceAccountAndBinding(clients *test.Clients, name string, logger *logging.BaseLogger, cleaner *test.Cleaner) error
CreateServiceAccountAndBinding creates both ServiceAccount and ClusterRoleBinding with default cluster-admin role
func CreateSubscription ¶
func CreateSubscription(clients *test.Clients, subs *v1alpha1.Subscription, logger *logging.BaseLogger, cleaner *test.Cleaner) error
CreateSubscription will create a Subscription
func PodLogs ¶
func PodLogs(clients *test.Clients, podName string, containerName string, logger *logging.BaseLogger) ([]byte, error)
PodLogs returns Pod logs for given Pod and Container
func WaitForAllPodsRunning ¶
func WaitForAllPodsRunning(clients *test.Clients, logger *logging.BaseLogger, namespace string) error
WaitForAllPodsRunning will wait until all pods in the given namespace are running
func WaitForLogContent ¶
func WaitForLogContent(clients *test.Clients, logger *logging.BaseLogger, podName string, containerName string, content string) error
WaitForLogContent waits until logs for given Pod/Container include the given content. If the content is not present within timeout it returns error.
Types ¶
This section is empty.