testing

package
v0.406.5 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: AGPL-3.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthPath        = "auth"
	ActionApiPath   = "testingactionsapi"
	JobPath         = "testingjobs"
	SubscriberPath  = "testingsubscribers"
	JobsWebhookPath = "/webhooks/jobs"
)

Variables

This section is empty.

Functions

func HandleJobExecutorRequest added in v0.368.0

func HandleJobExecutorRequest(r *http.Request, h *runtime.Handler, awsHandler *AWSAPIHandler) error

HandleJobExecutorRequest handles requests the job module in the testing package.

func HandleSubscriberExecutorRequest added in v0.368.0

func HandleSubscriberExecutorRequest(r *http.Request, h *runtime.Handler) 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 AWSAPIHandler added in v0.406.0

type AWSAPIHandler struct {
	PathPrefix    string
	SSMParameters map[string]string
	FunctionsURL  string
	FunctionsARN  string
	S3Bucket      map[string]*S3Object
	OnSQSEvent    func(events.SQSEvent)
}

func (*AWSAPIHandler) HandleHTTP added in v0.406.0

func (h *AWSAPIHandler) HandleHTTP(r *http.Request, w http.ResponseWriter)

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 S3Object added in v0.406.0

type S3Object struct {
	Headers http.Header
	Data    []byte
}

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