Documentation ¶
Index ¶
- Constants
- func CreateChannel(clients *test.Clients, channel *v1alpha1.Channel, logger *logging.BaseLogger, ...) error
- func CreateClusterRoleBinding(clients *test.Clients, crb *rbacv1.ClusterRoleBinding, ...) 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 CreateService(clients *test.Clients, svc *corev1.Service, logger *logging.BaseLogger, ...) 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, sub *v1alpha1.Subscription, logger *logging.BaseLogger, ...) error
- func PodLogs(clients *test.Clients, podName string, containerName string, namespace 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 WithChannelAndSubscriptionReady(clients *test.Clients, channel *v1alpha1.Channel, sub *v1alpha1.Subscription, ...) error
- func WithRouteReady(clients *test.Clients, logger *logging.BaseLogger, cleaner *test.Cleaner, ...) error
Constants ¶
const (
DefaultTestNamespace = "e2etest-knative-eventing"
)
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 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 CreateService ¶ added in v0.4.0
func CreateService(clients *test.Clients, svc *corev1.Service, logger *logging.BaseLogger, cleaner *test.Cleaner) error
CreateService will create a Service
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, sub *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, namespace 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, namespace 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.
func WithChannelAndSubscriptionReady ¶ added in v0.4.0
func WithChannelAndSubscriptionReady(clients *test.Clients, channel *v1alpha1.Channel, sub *v1alpha1.Subscription, logger *logging.BaseLogger, cleaner *test.Cleaner) error
WithChannelAndSubscriptionReady creates a Channel and Subscription and waits until both are Ready.
Types ¶
This section is empty.