test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: UPL-1.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArchivedRecording

func NewArchivedRecording() *operatorv1beta1.Recording

func NewCACert

func NewCACert() *certv1.Certificate

func NewContinuousRecording

func NewContinuousRecording() *operatorv1beta1.Recording

func NewCoreEnvFromSource

func NewCoreEnvFromSource(tls bool) []corev1.EnvFromSource

func NewCoreEnvironmentVariables

func NewCoreEnvironmentVariables(minimal bool, tls bool) []corev1.EnvVar

func NewCoreLivenessProbe

func NewCoreLivenessProbe(tls bool) *corev1.Probe

func NewCorePorts

func NewCorePorts() []corev1.ContainerPort

func NewCoreStartupProbe

func NewCoreStartupProbe(tls bool) *corev1.Probe

func NewCoreVolumeMounts

func NewCoreVolumeMounts(tls bool) []corev1.VolumeMount

func NewCryostat

func NewCryostat() *operatorv1beta1.Cryostat

func NewCryostatEndpoints

func NewCryostatEndpoints() *corev1.Endpoints

func NewCryostatPod

func NewCryostatPod() *corev1.Pod

func NewCryostatService

func NewCryostatService() *corev1.Service

func NewCryostatWithIngress

func NewCryostatWithIngress() *operatorv1beta1.Cryostat

func NewCryostatWithPVCLabelsOnly

func NewCryostatWithPVCLabelsOnly() *operatorv1beta1.Cryostat

func NewCryostatWithPVCSpec

func NewCryostatWithPVCSpec() *operatorv1beta1.Cryostat

func NewCryostatWithPVCSpecSomeDefault

func NewCryostatWithPVCSpecSomeDefault() *operatorv1beta1.Cryostat

func NewCryostatWithSecrets

func NewCryostatWithSecrets() *operatorv1beta1.Cryostat

func NewCustomPVC

func NewCustomPVC() *corev1.PersistentVolumeClaim

func NewCustomPVCSomeDefault

func NewCustomPVCSomeDefault() *corev1.PersistentVolumeClaim

func NewDatasourceEnvironmentVariables

func NewDatasourceEnvironmentVariables() []corev1.EnvVar

func NewDatasourceLivenessProbe

func NewDatasourceLivenessProbe() *corev1.Probe

func NewDatasourcePorts

func NewDatasourcePorts() []corev1.ContainerPort

func NewDefaultPVC

func NewDefaultPVC() *corev1.PersistentVolumeClaim

func NewDefaultPVCWithLabel

func NewDefaultPVCWithLabel() *corev1.PersistentVolumeClaim

func NewDeleteFailHandler

func NewDeleteFailHandler() http.HandlerFunc

func NewDeleteHandler

func NewDeleteHandler() http.HandlerFunc

func NewDeleteSavedFailHandler

func NewDeleteSavedFailHandler() http.HandlerFunc

func NewDeleteSavedHandler

func NewDeleteSavedHandler() http.HandlerFunc

func NewDeleteSavedNoJMXAuthHandler

func NewDeleteSavedNoJMXAuthHandler() http.HandlerFunc

func NewDeletedArchivedRecording

func NewDeletedArchivedRecording() *operatorv1beta1.Recording

func NewDeploymentSelector

func NewDeploymentSelector() *metav1.LabelSelector

func NewDumpFailHandler

func NewDumpFailHandler() http.HandlerFunc

func NewDumpHandler

func NewDumpHandler() http.HandlerFunc

func NewEventTypes

func NewEventTypes() []operatorv1beta1.EventInfo

func NewFlightRecorder

func NewFlightRecorder() *operatorv1beta1.FlightRecorder

func NewFlightRecorderBadJMXPassKey

func NewFlightRecorderBadJMXPassKey() *operatorv1beta1.FlightRecorder

func NewFlightRecorderBadJMXUserKey

func NewFlightRecorderBadJMXUserKey() *operatorv1beta1.FlightRecorder

func NewFlightRecorderForCryostat

func NewFlightRecorderForCryostat() *operatorv1beta1.FlightRecorder

func NewFlightRecorderNoJMXAuth

func NewFlightRecorderNoJMXAuth() *operatorv1beta1.FlightRecorder

func NewGrafanaEnvFromSource

func NewGrafanaEnvFromSource() []corev1.EnvFromSource

func NewGrafanaEnvironmentVariables

func NewGrafanaEnvironmentVariables(tls bool) []corev1.EnvVar

func NewGrafanaLivenessProbe

func NewGrafanaLivenessProbe(tls bool) *corev1.Probe

func NewGrafanaPorts

func NewGrafanaPorts() []corev1.ContainerPort

func NewGrafanaVolumeMounts

func NewGrafanaVolumeMounts(tls bool) []corev1.VolumeMount

func NewJMXAuthSecret

func NewJMXAuthSecret() *corev1.Secret

func NewJMXAuthSecretForCryostat

func NewJMXAuthSecretForCryostat() *corev1.Secret

func NewListEventTypesFailHandler

func NewListEventTypesFailHandler() http.HandlerFunc

func NewListEventTypesHandler

func NewListEventTypesHandler() http.HandlerFunc

func NewListEventTypesNoJMXAuthHandler

func NewListEventTypesNoJMXAuthHandler() http.HandlerFunc

func NewListFailHandler

func NewListFailHandler(descriptors []cryostatClient.RecordingDescriptor) http.HandlerFunc

func NewListHandler

func NewListHandler(descriptors []cryostatClient.RecordingDescriptor) http.HandlerFunc

func NewListSavedFailHandler

func NewListSavedFailHandler(saved []cryostatClient.SavedRecording) http.HandlerFunc

func NewListSavedHandler

func NewListSavedHandler(saved []cryostatClient.SavedRecording) http.HandlerFunc

func NewListSavedNoJMXAuthHandler

func NewListSavedNoJMXAuthHandler(saved []cryostatClient.SavedRecording) http.HandlerFunc

func NewListTemplatesFailHandler

func NewListTemplatesFailHandler() http.HandlerFunc

func NewListTemplatesHandler

func NewListTemplatesHandler() http.HandlerFunc

func NewListTemplatesNoJMXAuthHandler

func NewListTemplatesNoJMXAuthHandler() http.HandlerFunc

func NewMinimalCryostat

func NewMinimalCryostat() *operatorv1beta1.Cryostat

func NewNetworkConfiguration

func NewNetworkConfiguration(svcName string, svcPort int32) operatorv1beta1.NetworkConfiguration

func NewRecording

func NewRecording() *operatorv1beta1.Recording

func NewRecordingDescriptors

func NewRecordingDescriptors(state string, duration int64) []cryostatClient.RecordingDescriptor

func NewRecordingToStop

func NewRecordingToStop() *operatorv1beta1.Recording

func NewRecordingToStopAndArchive

func NewRecordingToStopAndArchive() *operatorv1beta1.Recording

func NewRunningContinuousRecording

func NewRunningContinuousRecording() *operatorv1beta1.Recording

func NewRunningRecording

func NewRunningRecording() *operatorv1beta1.Recording

func NewSaveFailHandler

func NewSaveFailHandler() http.HandlerFunc

func NewSaveHandler

func NewSaveHandler() http.HandlerFunc

func NewSavedRecordings

func NewSavedRecordings() []cryostatClient.SavedRecording

func NewStartFailHandler

func NewStartFailHandler() http.HandlerFunc

func NewStartHandler

func NewStartHandler() http.HandlerFunc

func NewStopFailHandler

func NewStopFailHandler() http.HandlerFunc

func NewStopHandler

func NewStopHandler() http.HandlerFunc

func NewStoppedRecordingToArchive

func NewStoppedRecordingToArchive() *operatorv1beta1.Recording

func NewTargetPod

func NewTargetPod() *corev1.Pod

func NewTemplates

func NewTemplates() []operatorv1beta1.TemplateInfo

func NewTestEndpoints

func NewTestEndpoints() *corev1.Endpoints

func NewTestEndpointsNoJMXPort

func NewTestEndpointsNoJMXPort() *corev1.Endpoints

func NewTestEndpointsNoPorts

func NewTestEndpointsNoPorts() *corev1.Endpoints

func NewTestEndpointsNoTargetRef

func NewTestEndpointsNoTargetRef() *corev1.Endpoints

func NewTestReconciler

func NewTestReconciler(config *TestReconcilerConfig) common.Reconciler

NewTestReconciler returns a common.Reconciler for use by unit tests

func NewTestReconcilerNoServer

func NewTestReconcilerNoServer(client client.Client) common.Reconciler

func NewTestReconcilerTLS

func NewTestReconcilerTLS(config *TestReconcilerConfig) common.ReconcilerTLS

func NewTestScheme

func NewTestScheme() *runtime.Scheme

func NewTestService

func NewTestService() *corev1.Service

func NewVolumeMountsWithSecrets

func NewVolumeMountsWithSecrets() []corev1.VolumeMount

func NewVolumes

func NewVolumes(minimal bool, tls bool) []corev1.Volume

func NewVolumesWithSecrets

func NewVolumesWithSecrets() []corev1.Volume

Types

type CryostatServer

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

CryostatServer is a test HTTP server used to simulate the Cryostat backend in unit tests

func NewServer

func NewServer(client client.Client, handlers []http.HandlerFunc, disableTLS *bool) *CryostatServer

NewServer creates a CryostatServer for use by unit tests

func (*CryostatServer) Close

func (s *CryostatServer) Close()

Close shuts down this test server

func (*CryostatServer) VerifyRequestsReceived

func (s *CryostatServer) VerifyRequestsReceived(handlers []http.HandlerFunc)

VerifyRequestsReceived checks that the number of requests received by the server match the length of the handlers argument

type TestReconcilerConfig

type TestReconcilerConfig struct {
	Server             *CryostatServer
	Client             client.Client
	DisableTLS         *bool
	CoreImageTag       *string
	DatasourceImageTag *string
	GrafanaImageTag    *string
}

TestReconcilerConfig groups parameters used to create a test Reconciler

Jump to

Keyboard shortcuts

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