testutils

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Provides sample closures for use in tests.

Index

Constants

View Source
const (
	ProjectQueryPattern = "project = ?"
	DomainQueryPattern  = "domain = ?"
	NameQueryPattern    = "name = ?"
	StateQueryPattern   = "state = ?"
)

Variables

View Source
var MockCreatedAtProto, _ = ptypes.TimestampProto(MockCreatedAtValue)
View Source
var MockCreatedAtValue = time.Date(2018, time.February, 17, 00, 00, 00, 00, time.UTC).UTC()

Functions

func GetApplicationConfigWithDefaultProjects

func GetApplicationConfigWithDefaultProjects() runtimeInterfaces.ApplicationConfiguration

func GetExecutionRequest

func GetExecutionRequest() admin.ExecutionCreateRequest

func GetLaunchPlanRequest

func GetLaunchPlanRequest() admin.LaunchPlanCreateRequest

func GetLaunchPlanRequestWithCronSchedule

func GetLaunchPlanRequestWithCronSchedule(testCronExpr string) admin.LaunchPlanCreateRequest

func GetLaunchPlanRequestWithFixedRateSchedule

func GetLaunchPlanRequestWithFixedRateSchedule(testRateValue uint32, testRateUnit admin.FixedRateUnit) admin.LaunchPlanCreateRequest

func GetRepoWithDefaultProject

func GetRepoWithDefaultProject() repositories.RepositoryInterface

func GetRepoWithDefaultProjectAndErr

func GetRepoWithDefaultProjectAndErr(err error) repositories.RepositoryInterface

func GetSampleLpSpecForTest

func GetSampleLpSpecForTest() admin.LaunchPlanSpec

func GetSampleWorkflowSpecForTest

func GetSampleWorkflowSpecForTest() admin.WorkflowSpec

func GetTaskClosure

func GetTaskClosure() *admin.TaskClosure

func GetTaskClosureBytes

func GetTaskClosureBytes() []byte

func GetValidTaskRequest

func GetValidTaskRequest() admin.TaskCreateRequest

func GetValidTaskRequestWithOverrides

func GetValidTaskRequestWithOverrides(project string, domain string, name string, version string) admin.TaskCreateRequest

func GetValidTaskSpecBytes

func GetValidTaskSpecBytes() []byte

func GetWorkflowClosure

func GetWorkflowClosure() *admin.WorkflowClosure

func GetWorkflowClosureBytes

func GetWorkflowClosureBytes() []byte

func GetWorkflowRequest

func GetWorkflowRequest() admin.WorkflowCreateRequest

func GetWorkflowRequestInterfaceBytes

func GetWorkflowRequestInterfaceBytes() []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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