testsuites

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BusyboxTestImage = "gcr.io/google_containers/busybox:1.24"
	MountPath        = "/devtestvol"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicallyProvisionePodWithVolTest

type DynamicallyProvisionePodWithVolTest struct {
	Pods     []PodDetails
	PodCheck *PodExecCheck
}

DynamicallyProvisioneVolPodWRTest will provision required PVC and Deployment Testing if the Pod can write and read to mounted volumes

func (*DynamicallyProvisionePodWithVolTest) Run

type PodDetails

type PodDetails struct {
	Cmd      string
	CmdExits bool
	Volumes  []VolumeDetails
}

func (*PodDetails) SetupWithDynamicVolumes

func (pod *PodDetails) SetupWithDynamicVolumes(client clientset.Interface, namespace *v1.Namespace) (*TestPod, []func())

type PodExecCheck

type PodExecCheck struct {
	Cmd              []string
	ExpectedString01 string
	ExpectedString02 string
}

type TestPersistentVolumeClaim

type TestPersistentVolumeClaim struct {
	// contains filtered or unexported fields
}

func NewTestPersistentVolumeClaim

func NewTestPersistentVolumeClaim(
	c clientset.Interface, pvcName string, ns *v1.Namespace,
	claimSize string, accessmode *v1.PersistentVolumeAccessMode,
	sc *storagev1.StorageClass) *TestPersistentVolumeClaim

func (*TestPersistentVolumeClaim) Cleanup

func (t *TestPersistentVolumeClaim) Cleanup()

func (*TestPersistentVolumeClaim) Create

func (t *TestPersistentVolumeClaim) Create()

func (*TestPersistentVolumeClaim) ValidateProvisionedPersistentVolume

func (t *TestPersistentVolumeClaim) ValidateProvisionedPersistentVolume()

func (*TestPersistentVolumeClaim) WaitForBound

type TestPod

type TestPod struct {
	// contains filtered or unexported fields
}

func NewTestPod

func NewTestPod(c clientset.Interface, ns *v1.Namespace, command string) *TestPod

func (*TestPod) Cleanup

func (t *TestPod) Cleanup()

func (*TestPod) Create

func (t *TestPod) Create()

func (*TestPod) Delete

func (t *TestPod) Delete()

func (*TestPod) Exec

func (t *TestPod) Exec(command []string, expectedString string) error

func (*TestPod) SetupVolume

func (t *TestPod) SetupVolume(pvc *v1.PersistentVolumeClaim, name, mountPath string, readOnly bool)

func (*TestPod) WaitForRunning

func (t *TestPod) WaitForRunning()

func (*TestPod) WaitForRunningSlow

func (t *TestPod) WaitForRunningSlow() error

func (*TestPod) WaitForSuccess

func (t *TestPod) WaitForSuccess() error

type TestSecret

type TestSecret struct {
	// contains filtered or unexported fields
}

func NewSecret

func NewSecret(c clientset.Interface, name, stype, ns, cosEndpoint, locationConstraint, bucketName, accessKey, secretKey string) *TestSecret

func (*TestSecret) Cleanup

func (s *TestSecret) Cleanup()

func (*TestSecret) Create

func (s *TestSecret) Create()

type VolumeDetails

type VolumeDetails struct {
	PVCName     string //PVC Name
	VolumeType  string //PVC SC
	VolumeMount VolumeMountDetails

	ClaimSize  string //PVC Capacity
	AccessMode *v1.PersistentVolumeAccessMode
	// contains filtered or unexported fields
}

func (*VolumeDetails) SetupDynamicPersistentVolumeClaim

func (volume *VolumeDetails) SetupDynamicPersistentVolumeClaim(client clientset.Interface, namespace *v1.Namespace) (*TestPersistentVolumeClaim, []func())

type VolumeMountDetails

type VolumeMountDetails struct {
	NameGenerate      string
	MountPathGenerate string
	ReadOnly          bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL