package
0.0.0-20241021115229-a8bdbce37716
Repository: https://github.com/slpcat/docker-images.git
Documentation: pkg.go.dev

# Packages

Package ginkgowrapper wraps Ginkgo Fail and Skip functions to panic with structured data instead of a constant string.

# Functions

AddCleanupAction installs a function that will be called in the event of the whole test being terminated.
AwaitPodReadyOrDie polls the specified Pod until it is ready of a timeout.
ExecuteSQL executes the given SQL statement(s) on a specified Cluster member via kubectl exec.
No description provided by the author
ExpectNoErrorWithOffset checks if "err" is set, and if so, fails assertion while logging the error at "offset" levels above its caller (for example, for call chain f -> g -> ExpectNoErrorWithOffset(1, ...) error would be logged for "f").
No description provided by the author
FailfWithOffset calls "Fail" and logs the error at "offset" levels above its caller (for example, for call chain f -> g -> FailfWithOffset(1, ...) error would be logged for "f").
GetPodCondition extracts the provided condition from the given status and returns that.
Extracts the pod ready condition from the given status and returns that.
GetReadyPrimaryPodName returns the name of the first ready primary Pod it finds in the given cluster.
GetReadySecondaryPodName returns the name of the first ready secondary pod it finds in the given cluster.
IsPodAvailable returns true if a pod is available; false otherwise.
IsPodReady returns true if a pod is ready; false otherwise.
IsPodReady returns true if a pod is ready; false otherwise.
KubectlCmd runs the kubectl executable through the wrapper script.
No description provided by the author
NewBackupTestJig allocates and inits a new BackupTestJig.
NewClusterTestJig allocates and inits a new ClusterTestJig.
NewDefaultFramework constructs a new e2e test Framework with default options.
NewFramework constructs a new e2e test Framework.
No description provided by the author
NewRestoreTestJig allocates and inits a new RestoreTestJig.
ReadSQLTest SELECTs v from testdb.foo where k=foo.
RegisterFlags registers the test framework flags and populates TestContext.
RemoveCleanupAction removes a function that was installed by AddCleanupAction.
RunCleanupActions runs all functions installed by AddCleanupAction.
RunHostCmd runs the given cmd in the context of the given pod using `kubectl exec` inside of a shell.
RunKubectl is a convenience wrapper over kubectlBuilder.
RunKubectlWithRetries runs a kubectl command with 3 retries.
WaitForPodCondition polls a pod until timeout has passed waiting for a pod to meet a given condition.
WriteSQLTest creates a test table, inserts a row, and writes a uuid into it.

# Constants

DefaultTimeout is how long we wait for long-running operations in the test suite before giving up.
Poll defines how regularly to poll kubernetes resources.
TestDBName is the name of database to use when executing test SQL queries.

# Variables

TestContext holds the context of the the test run.

# Structs

BackupTestJig is a jig to help Backup testing.
ClusterTestJig is a jig to help Cluster testing.
Framework is used in the execution of e2e tests.
RestoreTestJig is a jig to help Restore testing.
TestContextType represents the co.