testing

package
v0.396.8 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthPath       = "auth"
	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.

func MakeContext added in v0.372.0

func MakeContext(t *testing.T, ctx context.Context, keelSchema string, resetDatabase bool) (context.Context, db.Database, *proto.Schema)

func Run

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

Types

type RunnerOpts

type RunnerOpts struct {
	Dir           string
	Pattern       string
	DbConnInfo    *db.ConnectionInfo
	Secrets       map[string]string
	TestGroupName string
	// Generates a Keel client (keelClient.ts) for this test
	GenerateClient bool
}

type TestOutput

type TestOutput struct {
	Output  string
	Success bool
}

Jump to

Keyboard shortcuts

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