utils

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package utils provides shared common functions so different E2E tests suites can use them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendLog

func AppendLog(ls LogsTestSuite, content string, recurrence int)

AppendLog appen log with 'content', which is then repeated 'reccurrence' times and verifies log contents.

func CheckLogFilePresence

func CheckLogFilePresence(ls LogsTestSuite, logPath string)

CheckLogFilePresence verifies the presence or absence of a log file path

func CheckLogs

func CheckLogs(ls LogsTestSuite, service, content string, expectLogs bool)

CheckLogs verifies the presence or absence of logs in the intake based on the expectLogs flag.

func CleanUp

func CleanUp(ls LogsTestSuite)

CleanUp cleans up any existing log files (only useful when running dev mode/local runs).

Types

type LogsTestSuite

type LogsTestSuite interface {
	T() *testing.T
	Env() *environments.Host
	IsDevMode() bool
}

LogsTestSuite is an interface for the log agent test suite.

Jump to

Keyboard shortcuts

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