e2etests

package
v0.0.0-...-30deb2f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BPFinkInstance

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

func BPFinkRun

func BPFinkRun(t *testing.T, params BPFinkRunParameters) *BPFinkInstance

func (*BPFinkInstance) CheckIsHealthy

func (instance *BPFinkInstance) CheckIsHealthy(t *testing.T) ProcessHealth

func (*BPFinkInstance) ExpectEvent

func (instance *BPFinkInstance) ExpectEvent(t *testing.T, e Event)

func (*BPFinkInstance) ExpectNothing

func (instance *BPFinkInstance) ExpectNothing(t *testing.T)

func (*BPFinkInstance) Shutdown

func (instance *BPFinkInstance) Shutdown()

type BPFinkRunParameters

type BPFinkRunParameters struct {
	BPFinkBinPath        string
	BPFinkEbpfProgramm   string
	TestRootDir          string
	GenericMonitoringDir string
}

type Event

type Event struct {
	File    string
	Message string
}

type FS

type FS struct {
	GenericMonitoringDir string
}

func (*FS) MustCreateDir

func (fs *FS) MustCreateDir(t *testing.T, dirPath string)

func (*FS) MustCreateFile

func (fs *FS) MustCreateFile(t *testing.T, filePath string) *os.File

func (*FS) MustRemoveFile

func (fs *FS) MustRemoveFile(t *testing.T, filePath string)

type ProcessHealth

type ProcessHealth int
const (
	DIED ProcessHealth = iota
	WAITING
	ERROR
	HEALTHY
)

type World

type World struct {
	BPFink *BPFinkInstance
	FS     *FS
}

func SetUp

func SetUp(t *testing.T) *World

func (*World) SubTest

func (w *World) SubTest(testFunc func(*testing.T, *World)) func(*testing.T)

func (*World) TearDown

func (w *World) TearDown()

Jump to

Keyboard shortcuts

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