logstream

package
v0.0.0-...-20d7626 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package logstream lets end-to-end tests incorporate controller logs into the error output of tests. It is enabled by setting the SYSTEM_NAMESPACE environment variable, which tells this package what namespace to stream logs from.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Canceler

type Canceler func()

Canceler is the type of a function returned when a logstream is started to be deferred so that the logstream can be stopped when the test is complete.

func Start

func Start(t *testing.T) Canceler

Start begins streaming the logs from system components with a `key:` matching `test.ObjectNameForTest(t)` to `t.Log`. It returns a Canceler, which must be called before the test completes.

Jump to

Keyboard shortcuts

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