Documentation ¶
Index ¶
- func AssertStreamingRPCError(t *testing.T, s StreamingRPC, tc StreamingRPCErrorTestCase)
- func CgroupsCompatible(t *testing.T) bool
- func CgroupsCompatibleV1(t *testing.T)
- func CgroupsCompatibleV2(t *testing.T)
- func DockerCompatible(t *testing.T)
- func DockerIsConnected(t *testing.T) bool
- func ExecCompatible(t *testing.T)
- func JavaCompatible(t *testing.T)
- func MinimumCores(t *testing.T, cores int)
- func MountCompatible(t *testing.T)
- func QemuCompatible(t *testing.T)
- func RequireConsul(t *testing.T)
- func RequireLinux(t *testing.T)
- func RequireNonRoot(t *testing.T)
- func RequireRoot(t *testing.T)
- func RequireVault(t *testing.T)
- type StreamingRPC
- type StreamingRPCErrorTestCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertStreamingRPCError ¶ added in v0.9.6
func AssertStreamingRPCError(t *testing.T, s StreamingRPC, tc StreamingRPCErrorTestCase)
AssertStreamingRPCError asserts a streaming RPC's error matches the given assertion in the test case.
func CgroupsCompatible ¶ added in v1.3.0
CgroupsCompatible returns true if either cgroups.v1 or cgroups.v2 is supported.
func CgroupsCompatibleV1 ¶ added in v1.3.0
CgroupsCompatibleV1 skips tests unless: - cgroup.v1 mount point is detected
func CgroupsCompatibleV2 ¶ added in v1.3.0
CgroupsCompatibleV2 skips tests unless: - cgroup.v2 unified mode is detected
func DockerCompatible ¶ added in v0.9.0
DockerCompatible skips tests if docker is not present
func DockerIsConnected ¶ added in v0.3.2
DockerIsConnected checks to see if a docker daemon is available (local or remote)
func ExecCompatible ¶
ExecCompatible skips tests unless: - running as root - running on Linux
func JavaCompatible ¶ added in v0.2.0
JavaCompatible skips tests unless: - "java" executable is detected on $PATH - running as root - running on Linux
func MinimumCores ¶ added in v1.3.0
MinimumCores skips tests unless: - system has at least cores available CPU cores
func MountCompatible ¶
MountCompatible skips tests unless: - not running as windows - running as root
func QemuCompatible ¶
QemuCompatible skips tests unless: - "qemu-system-x86_64" executable is detected on $PATH (!windows) - "qemu-img" executable is detected on on $PATH (windows)
func RequireConsul ¶ added in v0.10.0
RequireConsul skips tests unless: - "consul" executable is detected on $PATH
func RequireLinux ¶ added in v1.3.0
RequireLinux skips tests unless: - running on Linux
func RequireNonRoot ¶ added in v1.5.0
RequireNonRoot skips tests unless: - running as non-root
func RequireRoot ¶ added in v0.7.1
RequireRoot skips tests unless: - running as root
func RequireVault ¶ added in v1.2.0
RequireVault skips tests unless: - "vault" executable is detected on $PATH
Types ¶
type StreamingRPC ¶ added in v0.9.6
type StreamingRPC interface {
StreamingRpcHandler(method string) (structs.StreamingRpcHandler, error)
}
StreamingRPC may be satisfied by client.Client or server.Server.