Documentation
¶
Index ¶
- Constants
- func CreateAndWaitPod(kubecli kubernetes.Interface, ns string, pod *v1.Pod, timeout time.Duration) (*v1.Pod, error)
- func CreateMXJob(mxjob *v1alpha1.MXJob) error
- func DeleteAndWaitPod(kubecli kubernetes.Interface, ns, name string, timeout time.Duration) error
- func NewTestMXJob(ns, name string, behavior Behavior, servers, workers int32) *v1alpha1.MXJob
- func WaitForMXJobFailed(ns, name string) error
- func WaitForMXJobFinish(ns, name string) error
- func WaitForMXJobSucceed(ns, name string) error
- type Behavior
- type Framework
Constants ¶
View Source
const (
BusyBoxImage = "busybox"
)
Variables ¶
This section is empty.
Functions ¶
func CreateAndWaitPod ¶
func CreateAndWaitPod(kubecli kubernetes.Interface, ns string, pod *v1.Pod, timeout time.Duration) (*v1.Pod, error)
CreateAndWaitPod creates a pod and waits until it is running
func CreateMXJob ¶
CreateMXJob creates the MXJob to APIServer.
func DeleteAndWaitPod ¶
DeleteAndWaitPod deletes a pod and waits util it is completely disappeared.
func NewTestMXJob ¶
NewTestMXJob creates a MXJob for testing purpose.
func WaitForMXJobFailed ¶
WaitForMXJobFailed waits for the MXJob to fail.
func WaitForMXJobFinish ¶
WaitForMXJobFinish waits for the MXJob to finish.
func WaitForMXJobSucceed ¶
WaitForMXJobSucceed waits for the MXJob to succeed.
Types ¶
type Framework ¶
type Framework struct {
// contains filtered or unexported fields
}
Framework is a framework for e2e testing.
func New ¶
func New(kubecli kubernetes.Interface, ns, opImage string) *Framework
New creates a Framework.
Click to show internal directories.
Click to hide internal directories.