Documentation ¶
Index ¶
- func IPEqual(s, t string) bool
- func Logf(format string, a ...interface{})
- func RandString(n int) string
- type Framework
- func (f *Framework) AfterEach()
- func (f *Framework) BeforeEach()
- func (f *Framework) CreatePod(spec *v1.Pod) *v1.Pod
- func (f *Framework) CreatePodAndWaitRunning(spec *v1.Pod, timeout time.Duration) *v1.Pod
- func (f *Framework) CreateRedisCluster(spec *redisv1beta1.RedisCluster) *redisv1beta1.RedisCluster
- func (f *Framework) CreateRedisClusterAndWaitHealthy(spec *redisv1beta1.RedisCluster, timeout time.Duration) *redisv1beta1.RedisCluster
- func (f *Framework) DeletePod(name string)
- func (f *Framework) DeleteRedisCluster(name string)
- func (f *Framework) Logf(format string, a ...interface{})
- func (f *Framework) Namespace() string
- func (f *Framework) UpdateRedisCluster(spec *redisv1beta1.RedisCluster) *redisv1beta1.RedisCluster
- func (f *Framework) WaitJobSuccess(jobName string, timeout time.Duration) error
- func (f *Framework) WaitPodRunning(podName string, timeout time.Duration) (*v1.Pod, error)
- func (f *Framework) WaitRedisclusterHealthy(name string, wait, timeout time.Duration) (result *redisv1beta1.RedisCluster, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Framework ¶
type Framework struct { Client *kubernetes.Clientset UtilClient client.Client RedisClient redis.Client K8sService k8s.Services // contains filtered or unexported fields }
Framework is e2e test framework
func NewFramework ¶
NewFramework create a new Framework with name
func (*Framework) CreatePodAndWaitRunning ¶
CreatePodAndWaitRunning creates a pod and waiting for it to become Running
func (*Framework) CreateRedisCluster ¶
func (f *Framework) CreateRedisCluster(spec *redisv1beta1.RedisCluster) *redisv1beta1.RedisCluster
CreateRedisCluster creates a RedisCluster in test namespace
func (*Framework) CreateRedisClusterAndWaitHealthy ¶
func (f *Framework) CreateRedisClusterAndWaitHealthy(spec *redisv1beta1.RedisCluster, timeout time.Duration) *redisv1beta1.RedisCluster
CreateRedisClusterAndWaitHealthy creates a RedisCluster and waiting for it to become Healthy
func (*Framework) DeleteRedisCluster ¶
DeleteRedisCluster deletes a RedisCluster with specified name in test namespace
func (*Framework) UpdateRedisCluster ¶
func (f *Framework) UpdateRedisCluster(spec *redisv1beta1.RedisCluster) *redisv1beta1.RedisCluster
UpdateRedisCluster update a RedisCluster in test namespace
func (*Framework) WaitJobSuccess ¶
WaitJobSuccess wait for a job to success or timeout
func (*Framework) WaitPodRunning ¶
WaitPodRunning wait for a status of a pod become running
func (*Framework) WaitRedisclusterHealthy ¶
func (f *Framework) WaitRedisclusterHealthy(name string, wait, timeout time.Duration) (result *redisv1beta1.RedisCluster, err error)
WaitRedisclusterHealthy wait for a status of a RedisCluster become Healthy
Click to show internal directories.
Click to hide internal directories.