Documentation ¶
Overview ¶
Package testing contains methods to create test data. It's a seaparate package to avoid import cycles. Helper functions can be found in the package `testhelper`.
Index ¶
- func CertificateVerify(rootPEM, certPEM []byte, dnsName string) error
- type Catalog
- func (c *Catalog) AnnotatedPod(name string, annotations map[string]string) corev1.Pod
- func (c *Catalog) BOSHDeploymentWithWrongTypeOps(name, manifestRef string, opsRef string) bdv1.BOSHDeployment
- func (c *Catalog) BOSHManifestCFRouting() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestConfigMapWithTwoInstanceGroups(name string) corev1.ConfigMap
- func (c *Catalog) BOSHManifestSecret(ref string, text string) corev1.Secret
- func (c *Catalog) BOSHManifestWithAbsentBPMInfo() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestWithBPMRelease() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestWithExternalLinks() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestWithGlobalUpdateBlock() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestWithLinks() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestWithMultiBPMProcesses() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestWithMultiBPMProcessesAndPersistentDisk() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestWithNilConsume() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestWithOverriddenBPMInfo() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestWithProviderAndConsumer() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestWithResources() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestWithUpdateSerial() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestWithUpdateSerialAndWithoutPorts() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestWithUpdateSerialInManifest() (*manifest.Manifest, error)
- func (c *Catalog) BOSHManifestWithZeroInstances() (*manifest.Manifest, error)
- func (c *Catalog) BPMReleaseWithAffinity() (*manifest.Manifest, error)
- func (c *Catalog) BPMReleaseWithAffinityConfigMap(name string) corev1.ConfigMap
- func (c *Catalog) CustomOpsConfigMap(name string, change string) corev1.ConfigMap
- func (c *Catalog) CustomOpsSecret(name string, change string) corev1.Secret
- func (c *Catalog) DefaultBOSHDeployment(name, manifestRef string) bdv1.BOSHDeployment
- func (c *Catalog) DefaultBOSHDeploymentWithOps(name, manifestRef string, opsRef string) bdv1.BOSHDeployment
- func (c *Catalog) DefaultBOSHManifest() (*manifest.Manifest, error)
- func (c *Catalog) DefaultBOSHManifestConfigMap(name string) corev1.ConfigMap
- func (c *Catalog) DefaultCA(name string, ca credsgen.Certificate) corev1.Secret
- func (c *Catalog) DefaultConfig() *config.Config
- func (c *Catalog) DefaultConfigMap(name string) corev1.ConfigMap
- func (c *Catalog) DefaultPod(name string) corev1.Pod
- func (c *Catalog) DefaultPodTemplate(name string) corev1.PodTemplateSpec
- func (c *Catalog) DefaultPodTemplateWithActiveLabel(name string) corev1.PodTemplateSpec
- func (c *Catalog) DefaultQuarksLinkSecret(deploymentName, linkType string) corev1.Secret
- func (c *Catalog) DefaultQuarksSecret(name string) qsv1a1.QuarksSecret
- func (c *Catalog) DefaultQuarksStatefulSet(name string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) DefaultSecret(name string) corev1.Secret
- func (c *Catalog) DefaultStatefulSet(name string) appsv1.StatefulSet
- func (c *Catalog) DefaultStatefulSetWithActiveSinglePod(name string) appsv1.StatefulSet
- func (c *Catalog) DefaultStatefulSetWithReplicasN(name string) appsv1.StatefulSet
- func (c *Catalog) DefaultStorageClass(name string) storagev1.StorageClass
- func (c *Catalog) DefaultVolumeClaimTemplates(name string, storageClassName string) []corev1.PersistentVolumeClaim
- func (c *Catalog) DefaultVolumeMount(name string) corev1.VolumeMount
- func (c *Catalog) ElaboratedBOSHManifest() (*manifest.Manifest, error)
- func (c *Catalog) EmptyBOSHDeployment(name, manifestRef string) bdv1.BOSHDeployment
- func (c *Catalog) EntangledPod(deploymentName string) corev1.Pod
- func (c *Catalog) InterpolateBOSHDeployment(name, manifestRef, opsRef string, secretRef string) bdv1.BOSHDeployment
- func (c *Catalog) InterpolateOpsConfigMap(name string) corev1.ConfigMap
- func (c *Catalog) InterpolateOpsIncorrectSecret(name string) corev1.Secret
- func (c *Catalog) InterpolateOpsSecret(name string) corev1.Secret
- func (c *Catalog) LabeledPod(name string, labels map[string]string) corev1.Pod
- func (c *Catalog) NatsConfigMap(deployName string) corev1.ConfigMap
- func (c *Catalog) NatsPod(deployName string) corev1.Pod
- func (c *Catalog) NatsSecret(deployName string) corev1.Secret
- func (c *Catalog) NatsService(deployName string) corev1.Service
- func (c *Catalog) NodePortService(name, ig string, targetPort int32) corev1.Service
- func (c *Catalog) OwnedReferencesPodTemplate(name string) corev1.PodTemplateSpec
- func (c *Catalog) OwnedReferencesQuarksStatefulSet(name string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) OwnedReferencesStatefulSet(name string) appsv1.StatefulSet
- func (c *Catalog) PodTemplateWithLabelsAndMount(name string, labels map[string]string, pvcName string) corev1.PodTemplateSpec
- func (c *Catalog) QstsWithActiveSinglePod(name string, cmd []string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) QstsWithProbeMultiplePods(name string, cmd []string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) QstsWithProbeSinglePod(name string, cmd []string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) QstsWithoutProbeMultiplePods(name string, cmd []string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) QuarksLinkSecret(deploymentName, igName, linkType, linkName, value string) corev1.Secret
- func (c *Catalog) QuarksStatefulSetWithPVC(name, pvcName string, storageClassName string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) SecretBOSHDeployment(name, manifestRef string) bdv1.BOSHDeployment
- func (c *Catalog) Sleep1hPodSpec() corev1.PodSpec
- func (c *Catalog) StatefulSetWithPVC(name, pvcName string, storageClassName string) appsv1.StatefulSet
- func (c *Catalog) StorageClassSecret(name string, class string) corev1.Secret
- func (c *Catalog) WrongPodTemplate(name string) corev1.PodTemplateSpec
- func (c *Catalog) WrongPodTemplateWithLabelsAndMount(name string, labels map[string]string, pvcName string) corev1.PodTemplateSpec
- func (c *Catalog) WrongQuarksStatefulSet(name string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) WrongQuarksStatefulSetWithPVC(name, pvcName string, storageClassName string) qstsv1a1.QuarksStatefulSet
- func (c *Catalog) WrongStatefulSet(name string) appsv1.StatefulSet
- func (c *Catalog) WrongStatefulSetWithPVC(name, pvcName string, storageClassName string) appsv1.StatefulSet
- func (c *Catalog) WrongTypeBOSHDeployment(name, manifestRef string) bdv1.BOSHDeployment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Catalog ¶
type Catalog struct{}
Catalog provides several instances for tests
func (*Catalog) AnnotatedPod ¶
AnnotatedPod defines a pod with annotations
func (*Catalog) BOSHDeploymentWithWrongTypeOps ¶
func (c *Catalog) BOSHDeploymentWithWrongTypeOps(name, manifestRef string, opsRef string) bdv1.BOSHDeployment
BOSHDeploymentWithWrongTypeOps a deployment CR with wrong type ops
func (*Catalog) BOSHManifestCFRouting ¶ added in v0.3.0
BOSHManifestCFRouting returns a manifest for the CF routing release with an underscore in the name
func (*Catalog) BOSHManifestConfigMapWithTwoInstanceGroups ¶ added in v0.4.0
BOSHManifestConfigMapWithTwoInstanceGroups for tests
func (*Catalog) BOSHManifestSecret ¶ added in v1.0.0
BOSHManifestSecret for tests
func (*Catalog) BOSHManifestWithAbsentBPMInfo ¶ added in v0.3.0
BOSHManifestWithAbsentBPMInfo for data gathering tests
func (*Catalog) BOSHManifestWithBPMRelease ¶ added in v0.3.0
BOSHManifestWithBPMRelease returns a manifest with single BPM configuration
func (*Catalog) BOSHManifestWithExternalLinks ¶ added in v1.0.0
BOSHManifestWithExternalLinks returns a manifest with external links Also usable in integration tests
func (*Catalog) BOSHManifestWithGlobalUpdateBlock ¶ added in v1.0.0
BOSHManifestWithGlobalUpdateBlock returns a manifest with a global update block
func (*Catalog) BOSHManifestWithLinks ¶ added in v1.0.0
BOSHManifestWithLinks returns a manifest with explicit and implicit BOSH links Also usable in integration tests
func (*Catalog) BOSHManifestWithMultiBPMProcesses ¶ added in v0.3.0
BOSHManifestWithMultiBPMProcesses returns a manifest with multi BPM configuration
func (*Catalog) BOSHManifestWithMultiBPMProcessesAndPersistentDisk ¶ added in v0.3.0
BOSHManifestWithMultiBPMProcessesAndPersistentDisk returns a manifest with multi BPM configuration and persistent disk
func (*Catalog) BOSHManifestWithNilConsume ¶ added in v1.0.0
BOSHManifestWithNilConsume returns a manifest with a nil consume for the job
func (*Catalog) BOSHManifestWithOverriddenBPMInfo ¶ added in v0.3.0
BOSHManifestWithOverriddenBPMInfo for data gathering tests
func (*Catalog) BOSHManifestWithProviderAndConsumer ¶
BOSHManifestWithProviderAndConsumer for data gathering tests
func (*Catalog) BOSHManifestWithResources ¶ added in v1.0.0
BOSHManifestWithResources for data gathering tests
func (*Catalog) BOSHManifestWithUpdateSerial ¶ added in v1.0.0
BOSHManifestWithUpdateSerial returns a manifest with update serial
func (*Catalog) BOSHManifestWithUpdateSerialAndWithoutPorts ¶ added in v1.0.0
BOSHManifestWithUpdateSerialAndWithoutPorts returns a manifest with update serial and without ports
func (*Catalog) BOSHManifestWithUpdateSerialInManifest ¶ added in v1.0.0
BOSHManifestWithUpdateSerialInManifest returns a manifest with update serial in manifest
func (*Catalog) BOSHManifestWithZeroInstances ¶ added in v1.0.0
BOSHManifestWithZeroInstances for data gathering tests
func (*Catalog) BPMReleaseWithAffinity ¶ added in v0.3.1
BPMReleaseWithAffinity returns a manifest with affinity
func (*Catalog) BPMReleaseWithAffinityConfigMap ¶ added in v0.3.1
BPMReleaseWithAffinityConfigMap for tests
func (*Catalog) CustomOpsConfigMap ¶ added in v1.0.0
CustomOpsConfigMap is an operations file with a custom structural change
func (*Catalog) CustomOpsSecret ¶ added in v1.0.0
CustomOpsSecret is an operations file with a custom structural change
func (*Catalog) DefaultBOSHDeployment ¶
func (c *Catalog) DefaultBOSHDeployment(name, manifestRef string) bdv1.BOSHDeployment
DefaultBOSHDeployment a deployment CR
func (*Catalog) DefaultBOSHDeploymentWithOps ¶
func (c *Catalog) DefaultBOSHDeploymentWithOps(name, manifestRef string, opsRef string) bdv1.BOSHDeployment
DefaultBOSHDeploymentWithOps a deployment CR with ops
func (*Catalog) DefaultBOSHManifest ¶
DefaultBOSHManifest returns a BOSH manifest for unit tests
func (*Catalog) DefaultBOSHManifestConfigMap ¶
DefaultBOSHManifestConfigMap for integration tests
func (*Catalog) DefaultCA ¶
DefaultCA for use in tests
func (*Catalog) DefaultConfig ¶
DefaultConfig for tests
func (*Catalog) DefaultConfigMap ¶
DefaultConfigMap for tests
func (*Catalog) DefaultPod ¶
DefaultPod defines a pod with a simple web server useful for testing
func (*Catalog) DefaultPodTemplate ¶
func (c *Catalog) DefaultPodTemplate(name string) corev1.PodTemplateSpec
DefaultPodTemplate defines a pod template with a simple web server useful for testing
func (*Catalog) DefaultPodTemplateWithActiveLabel ¶ added in v1.0.0
func (c *Catalog) DefaultPodTemplateWithActiveLabel(name string) corev1.PodTemplateSpec
DefaultPodTemplateWithActiveLabel defines a pod template with a simple web server useful for testing
func (*Catalog) DefaultQuarksLinkSecret ¶ added in v1.0.0
DefaultQuarksLinkSecret has default values from the nats release
func (*Catalog) DefaultQuarksSecret ¶ added in v1.0.0
func (c *Catalog) DefaultQuarksSecret(name string) qsv1a1.QuarksSecret
DefaultQuarksSecret for use in tests
func (*Catalog) DefaultQuarksStatefulSet ¶ added in v1.0.0
func (c *Catalog) DefaultQuarksStatefulSet(name string) qstsv1a1.QuarksStatefulSet
DefaultQuarksStatefulSet for use in tests
func (*Catalog) DefaultSecret ¶
DefaultSecret for tests
func (*Catalog) DefaultStatefulSet ¶
func (c *Catalog) DefaultStatefulSet(name string) appsv1.StatefulSet
DefaultStatefulSet for use in tests
func (*Catalog) DefaultStatefulSetWithActiveSinglePod ¶ added in v1.0.0
func (c *Catalog) DefaultStatefulSetWithActiveSinglePod(name string) appsv1.StatefulSet
DefaultStatefulSetWithActiveSinglePod for use in tests
func (*Catalog) DefaultStatefulSetWithReplicasN ¶ added in v1.0.0
func (c *Catalog) DefaultStatefulSetWithReplicasN(name string) appsv1.StatefulSet
DefaultStatefulSetWithReplicasN for use in tests
func (*Catalog) DefaultStorageClass ¶
func (c *Catalog) DefaultStorageClass(name string) storagev1.StorageClass
DefaultStorageClass 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) ElaboratedBOSHManifest ¶
ElaboratedBOSHManifest for data gathering tests
func (*Catalog) EmptyBOSHDeployment ¶
func (c *Catalog) EmptyBOSHDeployment(name, manifestRef string) bdv1.BOSHDeployment
EmptyBOSHDeployment empty deployment CR
func (*Catalog) EntangledPod ¶ added in v1.0.0
EntangledPod is a pod which has annotations for a BOSH link
func (*Catalog) InterpolateBOSHDeployment ¶
func (c *Catalog) InterpolateBOSHDeployment(name, manifestRef, opsRef string, secretRef string) bdv1.BOSHDeployment
InterpolateBOSHDeployment a deployment CR
func (*Catalog) InterpolateOpsConfigMap ¶
InterpolateOpsConfigMap for ops interpolate configmap tests
func (*Catalog) InterpolateOpsIncorrectSecret ¶
InterpolateOpsIncorrectSecret for ops interpolate incorrect secret tests
func (*Catalog) InterpolateOpsSecret ¶
InterpolateOpsSecret for ops interpolate secret tests
func (*Catalog) LabeledPod ¶
LabeledPod defines a pod with labels and a simple web server
func (*Catalog) NatsConfigMap ¶ added in v1.0.0
NatsConfigMap for use in tests
func (*Catalog) NatsPod ¶ added in v1.0.0
NatsPod for use in tests
func (*Catalog) NatsSecret ¶ added in v1.0.0
NatsSecret for use in tests
func (*Catalog) NatsService ¶ added in v1.0.0
NatsService for use in tests
func (*Catalog) NodePortService ¶ added in v0.4.2
NodePortService returns a Service of type NodePort
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 ¶ added in v1.0.0
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 simple web server useful for testing
func (*Catalog) QstsWithActiveSinglePod ¶ added in v1.0.0
func (c *Catalog) QstsWithActiveSinglePod(name string, cmd []string) qstsv1a1.QuarksStatefulSet
QstsWithActiveSinglePod for use in tests
func (*Catalog) QstsWithProbeMultiplePods ¶ added in v1.0.0
func (c *Catalog) QstsWithProbeMultiplePods(name string, cmd []string) qstsv1a1.QuarksStatefulSet
QstsWithProbeMultiplePods for use in tests
func (*Catalog) QstsWithProbeSinglePod ¶ added in v1.0.0
func (c *Catalog) QstsWithProbeSinglePod(name string, cmd []string) qstsv1a1.QuarksStatefulSet
QstsWithProbeSinglePod for use in tests
func (*Catalog) QstsWithoutProbeMultiplePods ¶ added in v1.0.0
func (c *Catalog) QstsWithoutProbeMultiplePods(name string, cmd []string) qstsv1a1.QuarksStatefulSet
QstsWithoutProbeMultiplePods for use in tests
func (*Catalog) QuarksLinkSecret ¶ added in v1.0.0
func (c *Catalog) QuarksLinkSecret(deploymentName, igName, linkType, linkName, value string) corev1.Secret
QuarksLinkSecret returns a link secret, as generated for consumption by an external (non BOSH) consumer
func (*Catalog) QuarksStatefulSetWithPVC ¶ added in v1.0.0
func (c *Catalog) QuarksStatefulSetWithPVC(name, pvcName string, storageClassName string) qstsv1a1.QuarksStatefulSet
QuarksStatefulSetWithPVC for use in tests
func (*Catalog) SecretBOSHDeployment ¶ added in v1.0.0
func (c *Catalog) SecretBOSHDeployment(name, manifestRef string) bdv1.BOSHDeployment
SecretBOSHDeployment a deployment CR which expectes the BOSH manifest in a secret. The name needs to match the name inside the referenced manifest.
func (*Catalog) Sleep1hPodSpec ¶
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) StorageClassSecret ¶ added in v0.3.1
StorageClassSecret for tests
func (*Catalog) WrongPodTemplate ¶
func (c *Catalog) WrongPodTemplate(name string) corev1.PodTemplateSpec
WrongPodTemplate defines a pod template with a simple web server useful for testing
func (*Catalog) WrongPodTemplateWithLabelsAndMount ¶
func (c *Catalog) WrongPodTemplateWithLabelsAndMount(name string, labels map[string]string, pvcName string) corev1.PodTemplateSpec
WrongPodTemplateWithLabelsAndMount defines a pod template with a simple web server useful for testing
func (*Catalog) WrongQuarksStatefulSet ¶ added in v1.0.0
func (c *Catalog) WrongQuarksStatefulSet(name string) qstsv1a1.QuarksStatefulSet
WrongQuarksStatefulSet for use in tests
func (*Catalog) WrongQuarksStatefulSetWithPVC ¶ added in v1.0.0
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
func (*Catalog) WrongTypeBOSHDeployment ¶
func (c *Catalog) WrongTypeBOSHDeployment(name, manifestRef string) bdv1.BOSHDeployment
WrongTypeBOSHDeployment a deployment CR containing wrong type
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package boshmanifest contains text assets for BOSH manifests and ops files
|
Package boshmanifest contains text assets for BOSH manifests and ops files |