testsuite

package
v0.0.0-...-b88123c Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Unlicense Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailSink

type EmailSink struct {
	Emails []string
}

func (*EmailSink) LatestEmail

func (es *EmailSink) LatestEmail() string

type MinioServer

type MinioServer struct {
	Username   string
	Password   string
	Address    string
	BucketName string
	// contains filtered or unexported fields
}

func NewMinioServer

func NewMinioServer(ctx context.Context, dir string) (*MinioServer, error)

func (*MinioServer) CycleBucket

func (server *MinioServer) CycleBucket() error

func (*MinioServer) DataDir

func (server *MinioServer) DataDir() string

func (*MinioServer) S3Client

func (server *MinioServer) S3Client() (*s3.S3, error)

func (*MinioServer) S3Config

func (server *MinioServer) S3Config() *aws.Config

func (*MinioServer) Stop

func (server *MinioServer) Stop() error

func (*MinioServer) Wait

func (server *MinioServer) Wait() error

type Suite

type Suite struct {
	suite.Suite
	// contains filtered or unexported fields
}

func (*Suite) AfterTest

func (suite *Suite) AfterTest(suiteName, testName string)

func (*Suite) BeforeTest

func (suite *Suite) BeforeTest(suiteName, testName string)

func (*Suite) DaemonRequest

func (suite *Suite) DaemonRequest(
	d *daemon.Daemon, appName string,
	method string, url string,
	body string) (_ *http.Response, respBody string, err error)

func (*Suite) DaemonURL

func (suite *Suite) DaemonURL(d *daemon.Daemon, paths ...string) string

func (*Suite) LoadExampleScript

func (suite *Suite) LoadExampleScript(name string) string

func (*Suite) MinioServerS3Config

func (suite *Suite) MinioServerS3Config() daemon.S3Config

func (*Suite) NewDaemon

func (suite *Suite) NewDaemon(opts ...daemon.DaemonOption) (d *daemon.Daemon, dir string)

NewDaemon creates a daemon with the provided options. If you've called StartMinioServer, that server will be associated with the created Daemon.

func (*Suite) NewDaemonClient

func (suite *Suite) NewDaemonClient(addr string) *daemon.Client

func (*Suite) NewLB

func (suite *Suite) NewLB() *loadbalancer.LB

func (*Suite) NewSteadyServer

func (suite *Suite) NewSteadyServer() (*EmailSink, http.Handler)

func (*Suite) NewWebServer

func (suite *Suite) NewWebServer() (*EmailSink, string)

func (*Suite) SetupSuite

func (suite *Suite) SetupSuite()

func (*Suite) StartMinioServer

func (suite *Suite) StartMinioServer()

Jump to

Keyboard shortcuts

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