test

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseURL       = "http://127.0.0.1:%s"
	BaseSecureURL = "https://127.0.0.1:%s"
	SleepTime     = 100 * time.Millisecond
)

Variables

This section is empty.

Functions

func CopyFiles

func CopyFiles(sourceDir string, destDir string) error

func Error

func Error(err error) error

func GetBaseURL

func GetBaseURL(port string) string

func GetFreePort

func GetFreePort() string

func GetImageConfig

func GetImageConfig() ([]byte, godigest.Digest)

func GetRandomImageConfig

func GetRandomImageConfig() ([]byte, godigest.Digest)

func GetSecureBaseURL

func GetSecureBaseURL(port string) string

func InjectFailure

func InjectFailure(skip int) bool

func Location

func Location(baseURL string, resp *resty.Response) string

func MakeHtpasswdFile

func MakeHtpasswdFile() string

func MakeHtpasswdFileFromString

func MakeHtpasswdFileFromString(fileContent string) string

func Ok

func Ok(ok bool) bool

func WaitTillServerReady

func WaitTillServerReady(url string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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