testing

package
v0.369.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionApiPath  = "testingactionsapi"
	JobPath        = "testingjobs"
	SubscriberPath = "testingsubscribers"
)

Variables

This section is empty.

Functions

func HandleJobExecutorRequest added in v0.368.0

func HandleJobExecutorRequest(ctx context.Context, schema *proto.Schema, jobName string, r *http.Request) error

HandleJobExecutorRequest handles requests the job module in the testing package.

func HandleSubscriberExecutorRequest added in v0.368.0

func HandleSubscriberExecutorRequest(ctx context.Context, schema *proto.Schema, subscriberName string, r *http.Request) error

HandleSubscriberExecutorRequest handles requests the subscriber module in the testing package.

Types

type RunnerOpts

type RunnerOpts struct {
	Dir             string
	Pattern         string
	DbConnInfo      *db.ConnectionInfo
	FunctionsOutput io.Writer
	EnvVars         map[string]string
	Secrets         map[string]string
	TestGroupName   string
}

type TestOutput

type TestOutput struct {
	Output  string
	Success bool
}

func Run

func Run(ctx context.Context, opts *RunnerOpts) (*TestOutput, error)

Jump to

Keyboard shortcuts

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