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.
Click to show internal directories.
Click to hide internal directories.