integration

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: BSD-3-Clause Imports: 59 Imported by: 4

Documentation

Overview

Package integration contains Tailscale integration tests.

This package is considered internal and the public API is subject to change without notice.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunDERPAndSTUN added in v1.12.0

func RunDERPAndSTUN(t testing.TB, logf logger.Logf, ipAddress string) (derpMap *tailcfg.DERPMap)

RunDERPAndSTUN runs a local DERP and STUN server for tests, returning the derpMap that clients should use. This creates resources that must be cleaned up with the returned cleanup function.

Types

type Binaries

type Binaries struct {
	Dir    string // temp dir for tailscale & tailscaled
	Daemon string // tailscaled
	CLI    string // tailscale
}

Binaries are the paths to a tailscaled and tailscale binary. These can be shared by multiple nodes.

func BuildTestBinaries

func BuildTestBinaries(t testing.TB) *Binaries

BuildTestBinaries builds tailscale and tailscaled, failing the test if they fail to compile.

type LogCatcher added in v1.12.0

type LogCatcher struct {
	// contains filtered or unexported fields
}

LogCatcher is a minimal logcatcher for the logtail upload client.

func (*LogCatcher) Reset added in v1.12.0

func (lc *LogCatcher) Reset()

Reset clears the buffered logs from memory.

func (*LogCatcher) ServeHTTP added in v1.12.0

func (lc *LogCatcher) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*LogCatcher) UseLogf added in v1.12.0

func (lc *LogCatcher) UseLogf(fn logger.Logf)

UseLogf makes the logcatcher implementation use a given logf function to dump all logs to.

Directories

Path Synopsis
Package testcontrol contains a minimal control plane server for testing purposes.
Package testcontrol contains a minimal control plane server for testing purposes.
vms
Package vms does VM-based integration/functional tests by using qemu and a bank of pre-made VM images.
Package vms does VM-based integration/functional tests by using qemu and a bank of pre-made VM images.
gen

Jump to

Keyboard shortcuts

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