mocks

package
v0.6.100 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockClusterResourceConfiguration

func NewMockClusterResourceConfiguration() interfaces.ClusterResourceConfiguration

func NewMockConfigurationProvider

func NewMockConfigurationProvider(
	applicationConfiguration interfaces.ApplicationConfiguration,
	queueConfiguration interfaces.QueueConfiguration,
	clusterConfiguration interfaces.ClusterConfiguration,
	taskResourceConfiguration interfaces.TaskResourceConfiguration,
	whitelistConfiguration interfaces.WhitelistConfiguration,
	namespaceMappingConfiguration interfaces.NamespaceMappingConfiguration) interfaces.Configuration

func NewMockQueueConfigurationProvider

func NewMockQueueConfigurationProvider(
	executionQueues []interfaces.ExecutionQueue,
	workflowConfigs []interfaces.WorkflowConfig) interfaces.QueueConfiguration

func NewMockTaskResourceConfiguration

func NewMockTaskResourceConfiguration(defaults, limits interfaces.TaskResourceSet) interfaces.TaskResourceConfiguration

func NewMockWhitelistConfiguration

func NewMockWhitelistConfiguration() interfaces.WhitelistConfiguration

Types

type ClusterConfiguration added in v0.6.80

type ClusterConfiguration struct {
	mock.Mock
}

ClusterConfiguration is an autogenerated mock type for the ClusterConfiguration type

func (*ClusterConfiguration) GetClusterConfigs added in v0.6.80

func (_m *ClusterConfiguration) GetClusterConfigs() []interfaces.ClusterConfig

GetClusterConfigs provides a mock function with given fields:

func (*ClusterConfiguration) GetLabelClusterMap added in v0.6.80

func (_m *ClusterConfiguration) GetLabelClusterMap() map[string][]interfaces.ClusterEntity

GetLabelClusterMap provides a mock function with given fields:

func (*ClusterConfiguration) OnGetClusterConfigs added in v0.6.80

func (*ClusterConfiguration) OnGetClusterConfigsMatch added in v0.6.80

func (_m *ClusterConfiguration) OnGetClusterConfigsMatch(matchers ...interface{}) *ClusterConfiguration_GetClusterConfigs

func (*ClusterConfiguration) OnGetLabelClusterMap added in v0.6.80

func (*ClusterConfiguration) OnGetLabelClusterMapMatch added in v0.6.80

func (_m *ClusterConfiguration) OnGetLabelClusterMapMatch(matchers ...interface{}) *ClusterConfiguration_GetLabelClusterMap

type ClusterConfiguration_GetClusterConfigs added in v0.6.80

type ClusterConfiguration_GetClusterConfigs struct {
	*mock.Call
}

func (ClusterConfiguration_GetClusterConfigs) Return added in v0.6.80

type ClusterConfiguration_GetLabelClusterMap added in v0.6.80

type ClusterConfiguration_GetLabelClusterMap struct {
	*mock.Call
}

func (ClusterConfiguration_GetLabelClusterMap) Return added in v0.6.80

type MockApplicationProvider

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

func (*MockApplicationProvider) GetDbConfig

func (p *MockApplicationProvider) GetDbConfig() *interfaces.DbConfig

func (*MockApplicationProvider) GetDomainsConfig

func (p *MockApplicationProvider) GetDomainsConfig() *interfaces.DomainsConfig

func (*MockApplicationProvider) GetExternalEventsConfig added in v0.3.38

func (p *MockApplicationProvider) GetExternalEventsConfig() *interfaces.ExternalEventsConfig

func (*MockApplicationProvider) GetNotificationsConfig

func (p *MockApplicationProvider) GetNotificationsConfig() *interfaces.NotificationsConfig

func (*MockApplicationProvider) GetRemoteDataConfig

func (p *MockApplicationProvider) GetRemoteDataConfig() *interfaces.RemoteDataConfig

func (*MockApplicationProvider) GetSchedulerConfig

func (p *MockApplicationProvider) GetSchedulerConfig() *interfaces.SchedulerConfig

func (*MockApplicationProvider) GetTopLevelConfig

func (p *MockApplicationProvider) GetTopLevelConfig() *interfaces.ApplicationConfig

func (*MockApplicationProvider) SetDbConfig

func (p *MockApplicationProvider) SetDbConfig(dbConfig interfaces.DbConfig)

func (*MockApplicationProvider) SetDomainsConfig

func (p *MockApplicationProvider) SetDomainsConfig(domainsConfig interfaces.DomainsConfig)

func (*MockApplicationProvider) SetExternalEventsConfig added in v0.3.38

func (p *MockApplicationProvider) SetExternalEventsConfig(externalEventsConfig interfaces.ExternalEventsConfig)

func (*MockApplicationProvider) SetNotificationsConfig

func (p *MockApplicationProvider) SetNotificationsConfig(notificationsConfig interfaces.NotificationsConfig)

func (*MockApplicationProvider) SetRemoteDataConfig

func (p *MockApplicationProvider) SetRemoteDataConfig(remoteDataConfig interfaces.RemoteDataConfig)

func (*MockApplicationProvider) SetSchedulerConfig

func (p *MockApplicationProvider) SetSchedulerConfig(schedulerConfig interfaces.SchedulerConfig)

func (*MockApplicationProvider) SetTopLevelConfig

func (p *MockApplicationProvider) SetTopLevelConfig(topLevelConfig interfaces.ApplicationConfig)

type MockClusterResourceConfiguration

type MockClusterResourceConfiguration struct {
	TemplatePath         string
	TemplateData         interfaces.TemplateData
	RefreshInterval      time.Duration
	CustomTemplateData   map[interfaces.DomainName]interfaces.TemplateData
	StandaloneDeployment bool
}

func (MockClusterResourceConfiguration) GetCustomTemplateData added in v0.1.4

func (MockClusterResourceConfiguration) GetRefreshInterval

func (c MockClusterResourceConfiguration) GetRefreshInterval() time.Duration

func (MockClusterResourceConfiguration) GetTemplateData

func (MockClusterResourceConfiguration) GetTemplatePath

func (c MockClusterResourceConfiguration) GetTemplatePath() string

func (MockClusterResourceConfiguration) IsStandaloneDeployment added in v0.6.85

func (c MockClusterResourceConfiguration) IsStandaloneDeployment() bool

type MockConfigurationProvider

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

func (*MockConfigurationProvider) AddClusterResourceConfiguration

func (p *MockConfigurationProvider) AddClusterResourceConfiguration(config interfaces.ClusterResourceConfiguration)

func (*MockConfigurationProvider) AddNamespaceMappingConfiguration added in v0.1.3

func (p *MockConfigurationProvider) AddNamespaceMappingConfiguration(config interfaces.NamespaceMappingConfiguration)

func (*MockConfigurationProvider) AddQualityOfServiceConfiguration added in v0.3.38

func (p *MockConfigurationProvider) AddQualityOfServiceConfiguration(config interfaces.QualityOfServiceConfiguration)

func (*MockConfigurationProvider) AddRegistrationValidationConfiguration

func (p *MockConfigurationProvider) AddRegistrationValidationConfiguration(config interfaces.RegistrationValidationConfiguration)

func (*MockConfigurationProvider) ApplicationConfiguration

func (p *MockConfigurationProvider) ApplicationConfiguration() interfaces.ApplicationConfiguration

func (*MockConfigurationProvider) ClusterConfiguration

func (p *MockConfigurationProvider) ClusterConfiguration() interfaces.ClusterConfiguration

func (*MockConfigurationProvider) ClusterResourceConfiguration

func (p *MockConfigurationProvider) ClusterResourceConfiguration() interfaces.ClusterResourceConfiguration

func (*MockConfigurationProvider) NamespaceMappingConfiguration added in v0.1.3

func (p *MockConfigurationProvider) NamespaceMappingConfiguration() interfaces.NamespaceMappingConfiguration

func (*MockConfigurationProvider) QualityOfServiceConfiguration added in v0.3.38

func (p *MockConfigurationProvider) QualityOfServiceConfiguration() interfaces.QualityOfServiceConfiguration

func (*MockConfigurationProvider) QueueConfiguration

func (*MockConfigurationProvider) RegistrationValidationConfiguration

func (p *MockConfigurationProvider) RegistrationValidationConfiguration() interfaces.RegistrationValidationConfiguration

func (*MockConfigurationProvider) TaskResourceConfiguration

func (p *MockConfigurationProvider) TaskResourceConfiguration() interfaces.TaskResourceConfiguration

func (*MockConfigurationProvider) WhitelistConfiguration

func (p *MockConfigurationProvider) WhitelistConfiguration() interfaces.WhitelistConfiguration

type MockQueueConfigurationProvider

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

func (*MockQueueConfigurationProvider) GetExecutionQueues

func (p *MockQueueConfigurationProvider) GetExecutionQueues() []interfaces.ExecutionQueue

func (*MockQueueConfigurationProvider) GetWorkflowConfigs

func (p *MockQueueConfigurationProvider) GetWorkflowConfigs() []interfaces.WorkflowConfig

type MockRegistrationValidationProvider

type MockRegistrationValidationProvider struct {
	WorkflowNodeLimit    int
	MaxLabelEntries      int
	MaxAnnotationEntries int
	WorkflowSizeLimit    string
}

func (*MockRegistrationValidationProvider) GetMaxAnnotationEntries

func (c *MockRegistrationValidationProvider) GetMaxAnnotationEntries() int

func (*MockRegistrationValidationProvider) GetMaxLabelEntries

func (c *MockRegistrationValidationProvider) GetMaxLabelEntries() int

func (*MockRegistrationValidationProvider) GetWorkflowNodeLimit

func (c *MockRegistrationValidationProvider) GetWorkflowNodeLimit() int

func (*MockRegistrationValidationProvider) GetWorkflowSizeLimit

func (c *MockRegistrationValidationProvider) GetWorkflowSizeLimit() string

type MockTaskResourceConfiguration

type MockTaskResourceConfiguration struct {
	Defaults interfaces.TaskResourceSet
	Limits   interfaces.TaskResourceSet
}

func (*MockTaskResourceConfiguration) GetDefaults

func (*MockTaskResourceConfiguration) GetLimits

type MockWhitelistConfiguration

type MockWhitelistConfiguration struct {
	TaskTypeWhitelist interfaces.TaskTypeWhitelist
}

func (*MockWhitelistConfiguration) GetTaskTypeWhitelist

func (c *MockWhitelistConfiguration) GetTaskTypeWhitelist() interfaces.TaskTypeWhitelist

type NamespaceMappingConfiguration added in v0.6.56

type NamespaceMappingConfiguration struct {
	mock.Mock
}

NamespaceMappingConfiguration is an autogenerated mock type for the NamespaceMappingConfiguration type

func (*NamespaceMappingConfiguration) GetNamespaceTemplate added in v0.6.56

func (_m *NamespaceMappingConfiguration) GetNamespaceTemplate() string

GetNamespaceTemplate provides a mock function with given fields:

func (*NamespaceMappingConfiguration) OnGetNamespaceTemplate added in v0.6.56

func (*NamespaceMappingConfiguration) OnGetNamespaceTemplateMatch added in v0.6.56

func (_m *NamespaceMappingConfiguration) OnGetNamespaceTemplateMatch(matchers ...interface{}) *NamespaceMappingConfiguration_GetNamespaceTemplate

type NamespaceMappingConfiguration_GetNamespaceTemplate added in v0.6.56

type NamespaceMappingConfiguration_GetNamespaceTemplate struct {
	*mock.Call
}

func (NamespaceMappingConfiguration_GetNamespaceTemplate) Return added in v0.6.56

Jump to

Keyboard shortcuts

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