test

package
v0.0.0-...-ca34b71 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectResourceRequirements

func ExpectResourceRequirements(containerResource, expectedResource *corev1.ResourceRequirements)

func NewTestOSUtils

func NewTestOSUtils(config *TestUtilsConfig) *testOSUtils

Types

type FakeManager

type FakeManager struct {
	ctrl.Manager
	// contains filtered or unexported fields
}

func NewFakeManager

func NewFakeManager(client client.Client, scheme *runtime.Scheme, logger *logr.Logger) *FakeManager

func (*FakeManager) Add

func (*FakeManager) GetAPIReader

func (m *FakeManager) GetAPIReader() client.Reader

func (*FakeManager) GetCache

func (m *FakeManager) GetCache() cache.Cache

func (*FakeManager) GetClient

func (m *FakeManager) GetClient() client.Client

func (*FakeManager) GetControllerOptions

func (m *FakeManager) GetControllerOptions() config.Controller

func (*FakeManager) GetLogger

func (m *FakeManager) GetLogger() logr.Logger

func (*FakeManager) GetScheme

func (m *FakeManager) GetScheme() *runtime.Scheme

func (*FakeManager) SetFields

func (m *FakeManager) SetFields(interface{}) error

type InsightsTestResources

type InsightsTestResources struct {
	Namespace       string
	UserAgentPrefix string
	Resources       *corev1.ResourceRequirements
}

func (*InsightsTestResources) NewClusterVersion

func (r *InsightsTestResources) NewClusterVersion() *configv1.ClusterVersion

func (*InsightsTestResources) NewGlobalPullSecret

func (r *InsightsTestResources) NewGlobalPullSecret() *corev1.Secret

func (*InsightsTestResources) NewInsightsProxyDeployment

func (r *InsightsTestResources) NewInsightsProxyDeployment() *appsv1.Deployment

func (*InsightsTestResources) NewInsightsProxySecret

func (r *InsightsTestResources) NewInsightsProxySecret() *corev1.Secret

func (*InsightsTestResources) NewInsightsProxySecretWithProxyDomain

func (r *InsightsTestResources) NewInsightsProxySecretWithProxyDomain() *corev1.Secret

func (*InsightsTestResources) NewInsightsProxyService

func (r *InsightsTestResources) NewInsightsProxyService() *corev1.Service

func (*InsightsTestResources) NewNamespace

func (r *InsightsTestResources) NewNamespace() *corev1.Namespace

func (*InsightsTestResources) NewOperatorDeployment

func (r *InsightsTestResources) NewOperatorDeployment() *appsv1.Deployment

func (*InsightsTestResources) NewProxyConfigMap

func (r *InsightsTestResources) NewProxyConfigMap() *corev1.ConfigMap

type TestUtilsConfig

type TestUtilsConfig struct {
	EnvInsightsEnabled       *bool
	EnvInsightsProxyImageTag *string
	EnvInsightsBackendDomain *string
	EnvInsightsProxyDomain   *string
}

TestUtilsConfig groups parameters used to create a test OSUtils

Jump to

Keyboard shortcuts

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