Documentation
¶
Overview ¶
Package asserts is the root for composed end-to-end assertions used by the Ginkgo specs in tests/e2e. Each topic lives in its own subpackage (cluster, backup, replication, ...) so it can be imported from per-topic e2e test directories. Asserts packages may dot-import ginkgo/gomega; the caller is expected to pass the *environment.TestingEnvironment and any required timeouts map explicitly rather than reach for package-level state.
Layering rules:
- tests/utils/<x>/ primitives over k8s / postgres state, no ginkgo
- tests/internal/resources/ ginkgo-coupled helpers that materialise YAML; not assertions
- tests/internal/asserts/<x>/ composed assertions, may depend on tests/utils and resources
- tests/e2e/ specs only, depend on the above
Directories
¶
| Path | Synopsis |
|---|---|
|
Package backup provides Ginkgo/Gomega assertions around backup/restore flows: BackupCondition checks, ScheduledBackup scheduling/suspension, continuous archiving, restoration (with/without application DB), and PITR verification.
|
Package backup provides Ginkgo/Gomega assertions around backup/restore flows: BackupCondition checks, ScheduledBackup scheduling/suspension, continuous archiving, restoration (with/without application DB), and PITR verification. |
|
Package cluster provides Ginkgo/Gomega assertions that operate on a Cluster resource as a whole: create it, observe its readiness, force switchovers, count its PVCs, etc.
|
Package cluster provides Ginkgo/Gomega assertions that operate on a Cluster resource as a whole: create it, observe its readiness, force switchovers, count its PVCs, etc. |
|
Package logs provides assertions over the JSON-encoded postgres logs captured from a pod.
|
Package logs provides assertions over the JSON-encoded postgres logs captured from a pod. |
|
Package metrics provides Ginkgo/Gomega assertions over the metrics scraped from instance pods: presence/absence checks and contents of custom metric ConfigMaps/Secrets.
|
Package metrics provides Ginkgo/Gomega assertions over the metrics scraped from instance pods: presence/absence checks and contents of custom metric ConfigMaps/Secrets. |
|
Package objectstore provides Ginkgo/Gomega assertions for WAL archiving to the object store.
|
Package objectstore provides Ginkgo/Gomega assertions for WAL archiving to the object store. |
|
Package pgbouncer provides Ginkgo/Gomega assertions over PGBouncer poolers: deployment readiness, pod recreation, endpoint slice routing, and connectivity through the pooler service.
|
Package pgbouncer provides Ginkgo/Gomega assertions over PGBouncer poolers: deployment readiness, pod recreation, endpoint slice routing, and connectivity through the pooler service. |
|
Package postgres provides Ginkgo/Gomega assertions over the Postgres data plane: test data setup, recovery mode checks, and helper query strings.
|
Package postgres provides Ginkgo/Gomega assertions over the Postgres data plane: test data setup, recovery mode checks, and helper query strings. |
|
Package replication provides Ginkgo/Gomega assertions for streaming replication state: read-only / read-write service behaviour, replica promotion and lag, replication slot accounting, replica clusters, and the fast-failover end-to-end choreography.
|
Package replication provides Ginkgo/Gomega assertions for streaming replication state: read-only / read-write service behaviour, replica promotion and lag, replication slot accounting, replica clusters, and the fast-failover end-to-end choreography. |
|
Package secrets provides Ginkgo/Gomega assertions for credential secret rotation, TLS certificate provisioning, and TLS verification from application pods.
|
Package secrets provides Ginkgo/Gomega assertions for credential secret rotation, TLS certificate provisioning, and TLS verification from application pods. |
|
Package storage provides Ginkgo/Gomega assertions over PVC state.
|
Package storage provides Ginkgo/Gomega assertions over PVC state. |
Click to show internal directories.
Click to hide internal directories.