...

Package fixture

import "github.com/chaos-mesh/chaos-mesh/test/pkg/fixture"
Overview
Index

Overview ▾

func HaveSameUIDs

func HaveSameUIDs(pods1 []corev1.Pod, pods2 []corev1.Pod) bool

HaveSameUIDs returns if pods1 and pods2 are same based on their UIDs

func NewCommonNginxDeployment

func NewCommonNginxDeployment(name, namespace string, replicas int32) *appsv1.Deployment

NewCommonNginxDeployment would create a nginx deployment

func NewCommonNginxPod

func NewCommonNginxPod(name, namespace string) *corev1.Pod

NewCommonNginxPod describe that we use common nginx pod to be tested in our chaos-operator test

func NewE2EService

func NewE2EService(name, namespace string) *corev1.Service

NewE2EService creates a service for the E2E helper deployment

func NewIOTestDeployment

func NewIOTestDeployment(name, namespace string) *appsv1.Deployment

NewIOTestDeployment creates a deployment for e2e test

func NewNetworkTestDeployment

func NewNetworkTestDeployment(name, namespace string, extraLabels map[string]string) *appsv1.Deployment

NewNetworkTestDeployment creates a deployment for e2e test

func NewTimerDeployment

func NewTimerDeployment(name, namespace string) *appsv1.Deployment

NewTimerDeployment creates a timer deployment