testutils

package
v0.3.20 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 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 ExecutionQueueAttributes = &admin.MatchingAttributes{
	Target: &admin.MatchingAttributes_ExecutionQueueAttributes{
		ExecutionQueueAttributes: &admin.ExecutionQueueAttributes{
			Tags: []string{
				"foo", "bar", "baz",
			},
		},
	},
}
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 GetApplicationConfigWithDefaultDomains added in v0.2.4

func GetApplicationConfigWithDefaultDomains() 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

func MakeStringLiteral added in v0.3.2

func MakeStringLiteral(value string) *core.Literal

Types

This section is empty.

Jump to

Keyboard shortcuts

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