Help us shape the future of Go! Take the 2026 Go Developer Survey

testutil

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const TmpPath = "/tmp/openpitrix-test"
View Source
const UserSystem = constants.UserSystem

Variables

This section is empty.

Functions

func ExecCmd

func ExecCmd(t *testing.T, cmd string) string

func GetClient

func GetClient(conf *ClientConfig) *apiclient.Openpitrix

func GetTmpDir

func GetTmpDir() string

func NoError added in v0.4.0

func NoError(t *testing.T, err error, services []string, msgAndArgs ...interface{})

Types

type ClientConfig

type ClientConfig struct {
	Debug      bool
	ConfigPath string
}

func GetClientConfig

func GetClientConfig() *ClientConfig

func (*ClientConfig) GetEndpoint

func (conf *ClientConfig) GetEndpoint() *url.URL

type Docker

type Docker struct {
	Name       string
	Image      string
	Port       int
	Volume     map[string]string
	WorkDir    string
	Entrypoint string
	// contains filtered or unexported fields
}

func NewDocker

func NewDocker(t *testing.T, name, image string) *Docker

func (*Docker) Exec

func (d *Docker) Exec(cmd string) string

func (*Docker) ExecD

func (d *Docker) ExecD(cmd string) string

func (*Docker) Setup

func (d *Docker) Setup() string

func (*Docker) Teardown

func (d *Docker) Teardown() string

type IgnoreLogger

type IgnoreLogger struct{}

func (IgnoreLogger) Debugf

func (IgnoreLogger) Debugf(format string, args ...interface{})

func (IgnoreLogger) Printf

func (IgnoreLogger) Printf(format string, args ...interface{})

type IoClient

type IoClient struct {
	// contains filtered or unexported fields
}

func GetIoClient

func GetIoClient(conf *ClientConfig) *IoClient

func (*IoClient) ReadMessage

func (i *IoClient) ReadMessage() topic.Message

Jump to

Keyboard shortcuts

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