Documentation ¶
Index ¶
- Constants
- func DefaultTestLogger() log.Logger
- func DockerClient(t TestingT) *dockerClient.Client
- func Eventually(timeout time.Duration, f func() bool) bool
- func GetBlockHeight(getMetrics func() (map[string]interface{}, error)) (value int, err error)
- func GetMetricsForPort(httpPort int) func() (map[string]interface{}, error)
- func InitSwarmEnvironment(t *testing.T, ctx context.Context)
- func LocalIP() string
- func LogSwarmServices(t *testing.T, ctx context.Context)
- func NodeAddresses() []string
- func PrintLog(log Log, w io.Writer)
- func RequireEventually(t TestingT, duration time.Duration, f func(t TestingT))
- func SkipUnlessSwarmIsEnabled(t *testing.T)
- func WithContext(f func(ctx context.Context))
- func WithContextAndShutdown(f func(ctx context.Context) govnr.ShutdownWaiter)
- type HttpServer
- type Log
- type LogLine
- type TestingT
Constants ¶
View Source
const DOCKER_API_VERSION = "1.40"
Variables ¶
This section is empty.
Functions ¶
func DefaultTestLogger ¶
func DockerClient ¶ added in v1.0.0
func DockerClient(t TestingT) *dockerClient.Client
func GetBlockHeight ¶
func GetMetricsForPort ¶
func InitSwarmEnvironment ¶ added in v0.22.0
func NodeAddresses ¶
func NodeAddresses() []string
func RequireEventually ¶ added in v0.22.0
* run the test func with a testing.T -like reporter func will run eventuallyIterations times at most, but will not start later than the specified duration expects the test func to succeed at least once, at which point this function returns immediately, Otherwise, the parent test will fail with the details of the last func failure.
func WithContext ¶ added in v0.22.0
func WithContextAndShutdown ¶ added in v0.22.0
func WithContextAndShutdown(f func(ctx context.Context) govnr.ShutdownWaiter)
Types ¶
type HttpServer ¶
func CreateHttpServer ¶
func CreateHttpServer(path string, port int, f func(writer http.ResponseWriter, request *http.Request)) HttpServer
Click to show internal directories.
Click to hide internal directories.