Documentation
¶
Overview ¶
Package logs provides assertions over the JSON-encoded postgres logs captured from a pod. Callers that also import tests/utils/logs should alias one of the two to avoid the package name collision.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasQueryRecord ¶
func HasQueryRecord(logEntries []map[string]interface{}, errorTestQuery, message, logger string) bool
HasQueryRecord reports whether any of the JSON log entries contains the expected query, message and logger triple. It is a predicate, not an Assert*-style helper, so it returns a bool for callers to feed into Eventually(...).Should(BeTrue()).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.