Documentation
¶
Index ¶
- func AuthService(t *testing.T) *authorization.AuthService
- func CreateBlueprint(t *testing.T, orgID uuid.UUID, nodes []models.Node, edges []models.Edge, ...) *models.Blueprint
- func CreateNextNodeExecution(t *testing.T, workflowID uuid.UUID, nodeID string, rootEventID uuid.UUID, ...) *models.WorkflowNodeExecution
- func CreateNodeExecutionWithConfiguration(t *testing.T, workflowID uuid.UUID, nodeID string, rootEventID uuid.UUID, ...) *models.WorkflowNodeExecution
- func CreateOrganization(t *testing.T, r *ResourceRegistry, userID uuid.UUID) *models.Organization
- func CreateSecret(t *testing.T, r *ResourceRegistry, secretData map[string]string) (*models.Secret, error)
- func CreateUser(t *testing.T, r *ResourceRegistry, organizationID uuid.UUID) *models.User
- func CreateWorkflow(t *testing.T, orgID uuid.UUID, userID uuid.UUID, nodes []models.WorkflowNode, ...) (*models.Workflow, []models.WorkflowNode)
- func CreateWorkflowNodeExecution(t *testing.T, workflowID uuid.UUID, nodeID string, rootEventID uuid.UUID, ...) *models.WorkflowNodeExecution
- func CreateWorkflowQueueItem(t *testing.T, workflowID uuid.UUID, nodeID string, rootEventID uuid.UUID, ...) *models.WorkflowNodeQueueItem
- func EmitWorkflowEventForNode(t *testing.T, workflowID uuid.UUID, nodeID string, channel string, ...) *models.WorkflowEvent
- func EmitWorkflowEventForNodeWithData(t *testing.T, workflowID uuid.UUID, nodeID string, channel string, ...) *models.WorkflowEvent
- func NewOIDCProvider() oidc.Provider
- func RandomName(prefix string) string
- func VerifyWorkflowEventsCount(t *testing.T, workflowID uuid.UUID, expected int)
- func VerifyWorkflowNodeExecutionKVCount(t *testing.T, workflowID uuid.UUID, expected int)
- func VerifyWorkflowNodeExecutionsCount(t *testing.T, workflowID uuid.UUID, expected int)
- func VerifyWorkflowNodeQueueCount(t *testing.T, workflowID uuid.UUID, expected int)
- func VerifyWorkflowNodeRequestCount(t *testing.T, workflowID uuid.UUID, expected int)
- type DummyApplication
- func (t *DummyApplication) CleanupWebhook(ctx core.CleanupWebhookContext) error
- func (t *DummyApplication) CompareWebhookConfig(a, b any) (bool, error)
- func (t *DummyApplication) Components() []core.Component
- func (t *DummyApplication) Configuration() []configuration.Field
- func (t *DummyApplication) Description() string
- func (t *DummyApplication) HandleRequest(ctx core.HTTPRequestContext)
- func (t *DummyApplication) Icon() string
- func (t *DummyApplication) InstallationInstructions() string
- func (t *DummyApplication) Label() string
- func (t *DummyApplication) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.ApplicationResource, error)
- func (t *DummyApplication) Name() string
- func (t *DummyApplication) SetupWebhook(ctx core.SetupWebhookContext) (any, error)
- func (t *DummyApplication) Sync(ctx core.SyncContext) error
- func (t *DummyApplication) Triggers() []core.Trigger
- type ResourceRegistry
- type SetupOptions
- type TestOIDCProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthService ¶
func AuthService(t *testing.T) *authorization.AuthService
func CreateBlueprint ¶
func CreateNextNodeExecution ¶
func CreateOrganization ¶
func CreateOrganization(t *testing.T, r *ResourceRegistry, userID uuid.UUID) *models.Organization
func CreateSecret ¶
func CreateUser ¶
func CreateWorkflow ¶
func CreateWorkflowQueueItem ¶
func NewOIDCProvider ¶ added in v0.1.1
func RandomName ¶
Types ¶
type DummyApplication ¶
type DummyApplication struct {
// contains filtered or unexported fields
}
func NewDummyApplication ¶
func NewDummyApplication(onSync func(ctx core.SyncContext) error) *DummyApplication
func NewDummyApplicationWithSetupWebhook ¶ added in v0.0.45
func NewDummyApplicationWithSetupWebhook( onSync func(ctx core.SyncContext) error, onSetupWebhook func(ctx core.SetupWebhookContext) (any, error), ) *DummyApplication
func (*DummyApplication) CleanupWebhook ¶
func (t *DummyApplication) CleanupWebhook(ctx core.CleanupWebhookContext) error
func (*DummyApplication) CompareWebhookConfig ¶
func (t *DummyApplication) CompareWebhookConfig(a, b any) (bool, error)
func (*DummyApplication) Components ¶
func (t *DummyApplication) Components() []core.Component
func (*DummyApplication) Configuration ¶
func (t *DummyApplication) Configuration() []configuration.Field
func (*DummyApplication) Description ¶
func (t *DummyApplication) Description() string
func (*DummyApplication) HandleRequest ¶
func (t *DummyApplication) HandleRequest(ctx core.HTTPRequestContext)
func (*DummyApplication) Icon ¶
func (t *DummyApplication) Icon() string
func (*DummyApplication) InstallationInstructions ¶ added in v0.0.45
func (t *DummyApplication) InstallationInstructions() string
func (*DummyApplication) Label ¶
func (t *DummyApplication) Label() string
func (*DummyApplication) ListResources ¶ added in v0.0.43
func (t *DummyApplication) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.ApplicationResource, error)
func (*DummyApplication) Name ¶
func (t *DummyApplication) Name() string
func (*DummyApplication) SetupWebhook ¶
func (t *DummyApplication) SetupWebhook(ctx core.SetupWebhookContext) (any, error)
func (*DummyApplication) Sync ¶
func (t *DummyApplication) Sync(ctx core.SyncContext) error
func (*DummyApplication) Triggers ¶
func (t *DummyApplication) Triggers() []core.Trigger
type ResourceRegistry ¶
type ResourceRegistry struct {
User uuid.UUID
UserModel *models.User
Organization *models.Organization
Account *models.Account
Encryptor crypto.Encryptor
AuthService *authorization.AuthService
Registry *registry.Registry
}
func Setup ¶
func Setup(t *testing.T) *ResourceRegistry
func SetupWithOptions ¶
func SetupWithOptions(t *testing.T, options SetupOptions) *ResourceRegistry
func (*ResourceRegistry) Close ¶
func (r *ResourceRegistry) Close()
type SetupOptions ¶
type TestOIDCProvider ¶ added in v0.1.1
type TestOIDCProvider struct{}
func (*TestOIDCProvider) PublicJWKs ¶ added in v0.1.1
func (p *TestOIDCProvider) PublicJWKs() []oidc.PublicJWK
Click to show internal directories.
Click to hide internal directories.