Documentation ¶
Index ¶
- Constants
- func CreateFakeKnativeAndMonitoringDiscoveryClient() discovery.DiscoveryInterface
- func GetBaseClusterPlatformInReadyPhase(namespace string) *operatorapi.SonataFlowClusterPlatform
- func GetBasePlatform() *operatorapi.SonataFlowPlatform
- func GetBasePlatformInReadyPhase(namespace string) *operatorapi.SonataFlowPlatform
- func GetBasePlatformWithBaseImageInReadyPhase(namespace string) *operatorapi.SonataFlowPlatform
- func GetBasePlatformWithBroker() *operatorapi.SonataFlowPlatform
- func GetBasePlatformWithBrokerInReadyPhase(namespace string) *operatorapi.SonataFlowPlatform
- func GetBasePlatformWithDevBaseImageInReadyPhase(namespace string) *operatorapi.SonataFlowPlatform
- func GetBaseSonataFlow(namespace string) *operatorapi.SonataFlow
- func GetBaseSonataFlowWithDevProfile(namespace string) *operatorapi.SonataFlow
- func GetBaseSonataFlowWithGitopsProfile(namespace string) *operatorapi.SonataFlow
- func GetBaseSonataFlowWithPreviewProfile(namespace string) *operatorapi.SonataFlow
- func GetBaseSonataFlowWithProdProfile(namespace string) *operatorapi.SonataFlow
- func GetDefaultBroker(namespace string) *eventingv1.Broker
- func GetKubernetesResource(testFile string, resource client.Object)
- func GetLocalSucceedSonataFlowBuild(name, namespace string) *operatorapi.SonataFlowBuild
- func GetNewEmptySonataFlowBuild(name, namespace string) *operatorapi.SonataFlowBuild
- func GetPathFromDataDirectory(join ...string) string
- func GetPathFromE2EDirectory(join ...string) string
- func GetPlatformMinikubeE2eTest() string
- func GetPlatformOpenshiftE2eTest() string
- func GetSonataFlow(testFile, namespace string) *operatorapi.SonataFlow
- func GetSonataFlowBuilderConfig(namespace string) *corev1.ConfigMap
- func GetSonataFlowClusterPlatformInReadyPhase(path string, namespace string) *operatorapi.SonataFlowClusterPlatform
- func GetSonataFlowE2eOrderProcessingFolder() string
- func GetSonataFlowPlatformInReadyPhase(path string, namespace string) *operatorapi.SonataFlowPlatform
- func GetVetEventSonataFlow(namespace string) *operatorapi.SonataFlow
- func MustGetBuild(t *testing.T, client ctrl.WithWatch, name types.NamespacedName) *operatorapi.SonataFlowBuild
- func MustGetConfigMap(t *testing.T, client ctrl.WithWatch, workflow *operatorapi.SonataFlow) *v1.ConfigMap
- func MustGetDeployment(t *testing.T, client ctrl.WithWatch, workflow *operatorapi.SonataFlow) *appsv1.Deployment
- func MustGetService(t *testing.T, client ctrl.WithWatch, workflow *operatorapi.SonataFlow) *v1.Service
- func MustGetWorkflow(t *testing.T, client ctrl.WithWatch, name types.NamespacedName) *operatorapi.SonataFlow
- func NewFakeRecorder() record.EventRecorder
- func NewSonataFlow(filePath string, namespace string, options ...func(*operatorapi.SonataFlow)) *operatorapi.SonataFlow
- func RestoreControllersConfig(t *testing.T)
- func SetDevProfile(workflow *operatorapi.SonataFlow)
- func SetGitopsProfile(workflow *operatorapi.SonataFlow)
- func SetPreviewProfile(workflow *operatorapi.SonataFlow)
- type MockPlatformService
- func (service *MockPlatformService) Create(ctx context.Context, obj clientv1.Object, opts ...clientv1.CreateOption) error
- func (service *MockPlatformService) Delete(ctx context.Context, obj clientv1.Object, opts ...clientv1.DeleteOption) error
- func (service *MockPlatformService) DeleteAllOf(ctx context.Context, obj clientv1.Object, opts ...clientv1.DeleteAllOfOption) error
- func (service *MockPlatformService) Get(ctx context.Context, key clientv1.ObjectKey, obj clientv1.Object) error
- func (service *MockPlatformService) GetCached(ctx context.Context, key clientv1.ObjectKey, obj clientv1.Object) error
- func (service *MockPlatformService) GetScheme() *runtime.Scheme
- func (service *MockPlatformService) IsMockService() bool
- func (service *MockPlatformService) List(ctx context.Context, list clientv1.ObjectList, opts ...clientv1.ListOption) error
- func (service *MockPlatformService) Patch(ctx context.Context, obj clientv1.Object, patch clientv1.Patch, ...) error
- func (service *MockPlatformService) Status() clientv1.StatusWriter
- func (service *MockPlatformService) Update(ctx context.Context, obj clientv1.Object, opts ...clientv1.UpdateOption) error
- type SonataFlowClientBuilder
Constants ¶
const ( SonataFlowGreetingsWithDataInputSchemaCR = "sonataflow.org_v1alpha08_sonataflow_greetings_datainput.yaml" SonataFlowGreetingsWithStaticResourcesCR = "sonataflow.org_v1alpha08_sonataflow-metainf.yaml" SonataFlowSimpleOpsYamlCR = "sonataflow.org_v1alpha08_sonataflow-simpleops.yaml" SonataFlowVetWithEventCR = "sonataflow.org_v1alpha08_sonataflow_vet_event.yaml" SonataFlowGreetingsDataInputSchemaConfig = "v1_configmap_greetings_datainput.yaml" SonataFlowGreetingsStaticFilesConfig = "v1_configmap_greetings_staticfiles.yaml" )
Variables ¶
This section is empty.
Functions ¶
func CreateFakeKnativeAndMonitoringDiscoveryClient ¶
func CreateFakeKnativeAndMonitoringDiscoveryClient() discovery.DiscoveryInterface
func GetBaseClusterPlatformInReadyPhase ¶
func GetBaseClusterPlatformInReadyPhase(namespace string) *operatorapi.SonataFlowClusterPlatform
func GetBasePlatform ¶
func GetBasePlatform() *operatorapi.SonataFlowPlatform
func GetBasePlatformInReadyPhase ¶
func GetBasePlatformInReadyPhase(namespace string) *operatorapi.SonataFlowPlatform
func GetBasePlatformWithBaseImageInReadyPhase ¶
func GetBasePlatformWithBaseImageInReadyPhase(namespace string) *operatorapi.SonataFlowPlatform
func GetBasePlatformWithBroker ¶
func GetBasePlatformWithBroker() *operatorapi.SonataFlowPlatform
func GetBasePlatformWithBrokerInReadyPhase ¶
func GetBasePlatformWithBrokerInReadyPhase(namespace string) *operatorapi.SonataFlowPlatform
func GetBasePlatformWithDevBaseImageInReadyPhase ¶
func GetBasePlatformWithDevBaseImageInReadyPhase(namespace string) *operatorapi.SonataFlowPlatform
func GetBaseSonataFlow ¶
func GetBaseSonataFlow(namespace string) *operatorapi.SonataFlow
func GetBaseSonataFlowWithDevProfile ¶
func GetBaseSonataFlowWithDevProfile(namespace string) *operatorapi.SonataFlow
func GetBaseSonataFlowWithGitopsProfile ¶
func GetBaseSonataFlowWithGitopsProfile(namespace string) *operatorapi.SonataFlow
func GetBaseSonataFlowWithPreviewProfile ¶
func GetBaseSonataFlowWithPreviewProfile(namespace string) *operatorapi.SonataFlow
GetBaseSonataFlowWithPreviewProfile gets a base workflow that has a pre-built image set in podTemplate.
func GetBaseSonataFlowWithProdProfile ¶
func GetBaseSonataFlowWithProdProfile(namespace string) *operatorapi.SonataFlow
func GetDefaultBroker ¶
func GetDefaultBroker(namespace string) *eventingv1.Broker
func GetKubernetesResource ¶
func GetLocalSucceedSonataFlowBuild ¶
func GetLocalSucceedSonataFlowBuild(name, namespace string) *operatorapi.SonataFlowBuild
GetLocalSucceedSonataFlowBuild gets a local (testdata dir ref to caller) SonataFlowBuild with Succeed status equals to true.
func GetNewEmptySonataFlowBuild ¶
func GetNewEmptySonataFlowBuild(name, namespace string) *operatorapi.SonataFlowBuild
func GetPathFromE2EDirectory ¶
func GetPlatformMinikubeE2eTest ¶
func GetPlatformMinikubeE2eTest() string
func GetPlatformOpenshiftE2eTest ¶
func GetPlatformOpenshiftE2eTest() string
func GetSonataFlow ¶
func GetSonataFlow(testFile, namespace string) *operatorapi.SonataFlow
func GetSonataFlowClusterPlatformInReadyPhase ¶
func GetSonataFlowClusterPlatformInReadyPhase(path string, namespace string) *operatorapi.SonataFlowClusterPlatform
func GetSonataFlowE2eOrderProcessingFolder ¶
func GetSonataFlowE2eOrderProcessingFolder() string
func GetSonataFlowPlatformInReadyPhase ¶
func GetSonataFlowPlatformInReadyPhase(path string, namespace string) *operatorapi.SonataFlowPlatform
func GetVetEventSonataFlow ¶
func GetVetEventSonataFlow(namespace string) *operatorapi.SonataFlow
func MustGetBuild ¶
func MustGetBuild(t *testing.T, client ctrl.WithWatch, name types.NamespacedName) *operatorapi.SonataFlowBuild
func MustGetConfigMap ¶
func MustGetConfigMap(t *testing.T, client ctrl.WithWatch, workflow *operatorapi.SonataFlow) *v1.ConfigMap
func MustGetDeployment ¶
func MustGetDeployment(t *testing.T, client ctrl.WithWatch, workflow *operatorapi.SonataFlow) *appsv1.Deployment
func MustGetService ¶
func MustGetService(t *testing.T, client ctrl.WithWatch, workflow *operatorapi.SonataFlow) *v1.Service
func MustGetWorkflow ¶
func MustGetWorkflow(t *testing.T, client ctrl.WithWatch, name types.NamespacedName) *operatorapi.SonataFlow
func NewFakeRecorder ¶
func NewFakeRecorder() record.EventRecorder
func NewSonataFlow ¶
func NewSonataFlow(filePath string, namespace string, options ...func(*operatorapi.SonataFlow)) *operatorapi.SonataFlow
func RestoreControllersConfig ¶
RestoreControllersConfig Utility function to restore the controllers global configuration in situations where a particular test must populate it with values form a given file. As part of the given test finalization we can invoke this function to restore the global configuration.
func SetDevProfile ¶
func SetDevProfile(workflow *operatorapi.SonataFlow)
func SetGitopsProfile ¶
func SetGitopsProfile(workflow *operatorapi.SonataFlow)
func SetPreviewProfile ¶
func SetPreviewProfile(workflow *operatorapi.SonataFlow)
Types ¶
type MockPlatformService ¶
type MockPlatformService struct { Client clientv1.Client CreateFunc func(ctx context.Context, obj clientv1.Object, opts ...clientv1.CreateOption) error DeleteFunc func(ctx context.Context, obj clientv1.Object, opts ...clientv1.DeleteOption) error GetFunc func(ctx context.Context, key clientv1.ObjectKey, obj clientv1.Object) error ListFunc func(ctx context.Context, list clientv1.ObjectList, opts ...clientv1.ListOption) error UpdateFunc func(ctx context.Context, obj clientv1.Object, opts ...clientv1.UpdateOption) error PatchFunc func(ctx context.Context, obj clientv1.Object, patch clientv1.Patch, opts ...clientv1.PatchOption) error DeleteAllOfFunc func(ctx context.Context, obj clientv1.Object, opts ...clientv1.DeleteAllOfOption) error GetCachedFunc func(ctx context.Context, key clientv1.ObjectKey, obj clientv1.Object) error GetSchemeFunc func() *runtime.Scheme StatusFunc func() clientv1.StatusWriter // contains filtered or unexported fields }
func (*MockPlatformService) Create ¶
func (service *MockPlatformService) Create(ctx context.Context, obj clientv1.Object, opts ...clientv1.CreateOption) error
func (*MockPlatformService) Delete ¶
func (service *MockPlatformService) Delete(ctx context.Context, obj clientv1.Object, opts ...clientv1.DeleteOption) error
func (*MockPlatformService) DeleteAllOf ¶
func (service *MockPlatformService) DeleteAllOf(ctx context.Context, obj clientv1.Object, opts ...clientv1.DeleteAllOfOption) error
func (*MockPlatformService) GetScheme ¶
func (service *MockPlatformService) GetScheme() *runtime.Scheme
func (*MockPlatformService) IsMockService ¶
func (service *MockPlatformService) IsMockService() bool
func (*MockPlatformService) List ¶
func (service *MockPlatformService) List(ctx context.Context, list clientv1.ObjectList, opts ...clientv1.ListOption) error
func (*MockPlatformService) Patch ¶
func (service *MockPlatformService) Patch(ctx context.Context, obj clientv1.Object, patch clientv1.Patch, opts ...clientv1.PatchOption) error
func (*MockPlatformService) Status ¶
func (service *MockPlatformService) Status() clientv1.StatusWriter
func (*MockPlatformService) Update ¶
func (service *MockPlatformService) Update(ctx context.Context, obj clientv1.Object, opts ...clientv1.UpdateOption) error
type SonataFlowClientBuilder ¶
type SonataFlowClientBuilder struct {
// contains filtered or unexported fields
}
func NewKogitoClientBuilderWithOpenShift ¶
func NewKogitoClientBuilderWithOpenShift() *SonataFlowClientBuilder
NewKogitoClientBuilderWithOpenShift creates a new fake client with OpenShift schemas. If your object is not present, just add in the list below.
func NewSonataFlowClientBuilder ¶
func NewSonataFlowClientBuilder() *SonataFlowClientBuilder
NewSonataFlowClientBuilder creates a new fake.ClientBuilder with the right scheme references
func NewSonataFlowClientBuilderWithKnative ¶
func NewSonataFlowClientBuilderWithKnative() *SonataFlowClientBuilder
func (*SonataFlowClientBuilder) Build ¶
func (s *SonataFlowClientBuilder) Build() ctrl.WithWatch
Build from the underlying fake.ClientBuilder. To overwrite this method we need to forward all the functions from the base implementation since they do not use an interface.
func (*SonataFlowClientBuilder) WithRuntimeObjects ¶
func (s *SonataFlowClientBuilder) WithRuntimeObjects(initRuntimeObjs ...runtime.Object) *SonataFlowClientBuilder
func (*SonataFlowClientBuilder) WithStatusSubresource ¶
func (s *SonataFlowClientBuilder) WithStatusSubresource(o ...ctrl.Object) *SonataFlowClientBuilder