Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NeedOtherDispersServer ¶
NeedOtherDispersServer kill the process if there is no other Server Dispers running
Types ¶
type CookieJar ¶
CookieJar is a http.CookieJar which always returns all cookies. NOTE golang stdlib uses cookies for the URL (ie the testserver), not for the host (ie the instance), so we do it manually
type TestSetup ¶
type TestSetup struct {
// contains filtered or unexported fields
}
TestSetup is a wrapper around a testing.M which handles setting up instance, client, VFSContext, testserver and cleaning up after itself
func NewSetup ¶
NewSetup returns a new TestSetup name is used to prevent bug when tests are run in parallel
func (*TestSetup) AddCleanup ¶
AddCleanup adds a function to be run when the test is finished.
func (*TestSetup) CleanupAndDie ¶
func (c *TestSetup) CleanupAndDie(msg ...interface{})
CleanupAndDie cleanup the TestSetup, prints a message and close the process
func (*TestSetup) GetTmpDirectory ¶
GetTmpDirectory creates a temporary directory The directory will be removed on container cleanup