Documentation
¶
Index ¶
- func DebugFlagSet() bool
- func JSON(t *testing.T, value interface{}) string
- func JSONDiffs(t *testing.T, expected, actual string) []string
- func LogReadLine(reader *bufio.Reader, timeout time.Duration) (string, error)
- func PortOpen(listenAddress string) bool
- func PrettyPrintObject(obj interface{}) string
- func VaultTokenRefresh()
- func VaultValue(params ...interface{}) string
- type LogDebugger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugFlagSet ¶
func DebugFlagSet() bool
func LogReadLine ¶
LogReadLine reads and returns a single line from the given file. If a given timeout has passed, an error is returned.
func PrettyPrintObject ¶
func PrettyPrintObject(obj interface{}) string
PrettyPrintObject returns the JSON representation of any object; only useful for debugging.
func VaultTokenRefresh ¶
func VaultTokenRefresh()
func VaultValue ¶
func VaultValue(params ...interface{}) string
VaultValue returns a value from the vault service If query has 1 element, the secret is assumed to be named "integration-testing". Otherwise, there should be 2 elements, the first a secret, and the second a query passed to gjson, to get a value from the json object returned from Vault. The first parameter can also be a testing.T. In this case, the function won't panic, but use t.Fail.
Types ¶
type LogDebugger ¶
type LogDebugger struct {
// contains filtered or unexported fields
}
func NewLogDebugger ¶
func NewLogDebugger(t *testing.T, logName string) *LogDebugger
func (*LogDebugger) Contains ¶
func (d *LogDebugger) Contains(message string) bool
Click to show internal directories.
Click to hide internal directories.