package environment

import "github.com/docker/cli/internal/test/environment"

Index

Variables

var DefaultPollSettings = poll.WithDelay(100 * time.Millisecond)

DefaultPollSettings used with gotestyourself/poll

Functions

func KubernetesEnabled

func KubernetesEnabled() bool

KubernetesEnabled returns if Kubernetes testing is enabled

func RemoteDaemon

func RemoteDaemon() bool

RemoteDaemon returns true if running against a remote daemon

func Setup

func Setup() error

Setup a new environment

func SkipIfCgroupNamespacesNotSupported

func SkipIfCgroupNamespacesNotSupported(t *testing.T)

SkipIfCgroupNamespacesNotSupported skips the test if the running docker daemon doesn't support cgroup namespaces

func SkipIfDaemonNotLinux

func SkipIfDaemonNotLinux(t *testing.T)

SkipIfDaemonNotLinux skips the test unless the running docker daemon is on Linux

func SkipIfNotExperimentalDaemon

func SkipIfNotExperimentalDaemon(t *testing.T)

SkipIfNotExperimentalDaemon returns whether the test docker daemon is in experimental mode

func SkipPluginTests

func SkipPluginTests() bool

SkipPluginTests returns if plugin tests should be skipped

Source Files

testenv.go

Version
v20.10.0-beta1+incompatible
Published
Oct 7, 2020
Platform
linux/amd64
Imports
9 packages
Last checked
9 minutes ago

Tools for package owners.