testing

package
v1.0.1320 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct{}

Catalog provides several instances for tests

func (*Catalog) DefaultConfig

func (c *Catalog) DefaultConfig() *config.Config

DefaultConfig for tests

func (*Catalog) DefaultConfigMap

func (c *Catalog) DefaultConfigMap(name string) corev1.ConfigMap

DefaultConfigMap for tests

func (*Catalog) DefaultPodTemplate

func (c *Catalog) DefaultPodTemplate(name string) corev1.PodTemplateSpec

DefaultPodTemplate defines a pod template with the testpod label

func (*Catalog) DefaultPodTemplateWithActiveLabel

func (c *Catalog) DefaultPodTemplateWithActiveLabel(name string) corev1.PodTemplateSpec

DefaultPodTemplateWithActiveLabel defines a pod template with an pod-active label

func (*Catalog) DefaultQuarksStatefulSet

func (c *Catalog) DefaultQuarksStatefulSet(name string) qstsv1a1.QuarksStatefulSet

DefaultQuarksStatefulSet for use in tests

func (*Catalog) DefaultSecret

func (c *Catalog) DefaultSecret(name string) corev1.Secret

DefaultSecret for tests

func (*Catalog) DefaultStatefulSet

func (c *Catalog) DefaultStatefulSet(name string) appsv1.StatefulSet

DefaultStatefulSet for use in tests

func (*Catalog) DefaultStatefulSetWithActiveSinglePod

func (c *Catalog) DefaultStatefulSetWithActiveSinglePod(name string) appsv1.StatefulSet

DefaultStatefulSetWithActiveSinglePod for use in tests

func (*Catalog) DefaultStatefulSetWithReplicasN

func (c *Catalog) DefaultStatefulSetWithReplicasN(name string) appsv1.StatefulSet

DefaultStatefulSetWithReplicasN for use in tests

func (*Catalog) DefaultVolumeClaimTemplates

func (c *Catalog) DefaultVolumeClaimTemplates(name string, storageClassName string) []corev1.PersistentVolumeClaim

DefaultVolumeClaimTemplates for use in tests

func (*Catalog) DefaultVolumeMount

func (c *Catalog) DefaultVolumeMount(name string) corev1.VolumeMount

DefaultVolumeMount for use in tests

func (*Catalog) LabeledPod added in v0.0.3

func (c *Catalog) LabeledPod(name string, labels map[string]string) corev1.Pod

LabeledPod defines a pod with labels

func (*Catalog) OwnedReferencesPodTemplate

func (c *Catalog) OwnedReferencesPodTemplate(name string) corev1.PodTemplateSpec

OwnedReferencesPodTemplate defines a pod template with four references from VolumeSources, EnvFrom and Env

func (*Catalog) OwnedReferencesQuarksStatefulSet

func (c *Catalog) OwnedReferencesQuarksStatefulSet(name string) qstsv1a1.QuarksStatefulSet

OwnedReferencesQuarksStatefulSet for use in tests

func (*Catalog) OwnedReferencesStatefulSet

func (c *Catalog) OwnedReferencesStatefulSet(name string) appsv1.StatefulSet

OwnedReferencesStatefulSet for use in tests

func (*Catalog) PodTemplateWithLabelsAndMount

func (c *Catalog) PodTemplateWithLabelsAndMount(name string, labels map[string]string, pvcName string) corev1.PodTemplateSpec

PodTemplateWithLabelsAndMount defines a pod template with a volume mount

func (*Catalog) QstsWithActiveSinglePod

func (c *Catalog) QstsWithActiveSinglePod(name string, cmd []string) qstsv1a1.QuarksStatefulSet

QstsWithActiveSinglePod for use in tests

func (*Catalog) QstsWithProbeMultiplePods

func (c *Catalog) QstsWithProbeMultiplePods(name string, cmd []string) qstsv1a1.QuarksStatefulSet

QstsWithProbeMultiplePods for use in tests

func (*Catalog) QstsWithProbeSinglePod

func (c *Catalog) QstsWithProbeSinglePod(name string, cmd []string) qstsv1a1.QuarksStatefulSet

QstsWithProbeSinglePod for use in tests

func (*Catalog) QstsWithProbeSinglePodMultipleAZs added in v0.0.3

func (c *Catalog) QstsWithProbeSinglePodMultipleAZs(name string, cmd []string, zones []string) qstsv1a1.QuarksStatefulSet

QstsWithProbeSinglePodMultipleAZs for use in tests

func (*Catalog) QstsWithoutProbeMultiplePods

func (c *Catalog) QstsWithoutProbeMultiplePods(name string, cmd []string) qstsv1a1.QuarksStatefulSet

QstsWithoutProbeMultiplePods for use in tests

func (*Catalog) QuarksStatefulSetWithPVC

func (c *Catalog) QuarksStatefulSetWithPVC(name, pvcName string, storageClassName string) qstsv1a1.QuarksStatefulSet

QuarksStatefulSetWithPVC for use in tests

func (*Catalog) Sleep1hPodSpec

func (c *Catalog) Sleep1hPodSpec() corev1.PodSpec

Sleep1hPodSpec defines a simple pod that sleeps 60*60s for testing

func (*Catalog) StatefulSetWithPVC

func (c *Catalog) StatefulSetWithPVC(name, pvcName string, storageClassName string) appsv1.StatefulSet

StatefulSetWithPVC for use in tests

func (*Catalog) WrongPodTemplate

func (c *Catalog) WrongPodTemplate(name string) corev1.PodTemplateSpec

WrongPodTemplate defines a pod template with the wrong label/image

func (*Catalog) WrongPodTemplateWithLabelsAndMount

func (c *Catalog) WrongPodTemplateWithLabelsAndMount(name string, labels map[string]string, pvcName string) corev1.PodTemplateSpec

WrongPodTemplateWithLabelsAndMount defines a pod template with wrong label/image and a volument mount

func (*Catalog) WrongQuarksStatefulSet

func (c *Catalog) WrongQuarksStatefulSet(name string) qstsv1a1.QuarksStatefulSet

WrongQuarksStatefulSet for use in tests

func (*Catalog) WrongQuarksStatefulSetWithPVC

func (c *Catalog) WrongQuarksStatefulSetWithPVC(name, pvcName string, storageClassName string) qstsv1a1.QuarksStatefulSet

WrongQuarksStatefulSetWithPVC for use in tests

func (*Catalog) WrongStatefulSet

func (c *Catalog) WrongStatefulSet(name string) appsv1.StatefulSet

WrongStatefulSet for use in tests

func (*Catalog) WrongStatefulSetWithPVC

func (c *Catalog) WrongStatefulSetWithPVC(name, pvcName string, storageClassName string) appsv1.StatefulSet

WrongStatefulSetWithPVC for use in tests

Jump to

Keyboard shortcuts

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