Documentation
¶
Overview ¶
Package tests contains the test infrastructure of the CloudNativePG operator
Index ¶
Constants ¶
View Source
const ( // LabelBackupRestore is a label for only selecting backup and restore tests LabelBackupRestore = "backup-restore" // LabelBasic is a label for selecting basic tests LabelBasic = "basic" // LabelClusterMetadata is a label for selecting cluster-metadata tests LabelClusterMetadata = "cluster-metadata" // LabelDeclarativeDatabases is a label for selecting the declarative databases test LabelDeclarativeDatabases = "declarative-databases" // LabelDisruptive is the string for labelling disruptive tests LabelDisruptive = "disruptive" // LabelImportingDatabases is a label for selecting the importing-databases test LabelImportingDatabases = "importing-databases" // LabelMaintenance is a label for selecting maintenance tests LabelMaintenance = "maintenance" // LabelNoOpenshift is the string for selecting tests that don't run on Openshift LabelNoOpenshift = "no-openshift" // LabelObservability is a label for selecting observability tests LabelObservability = "observability" // LabelOperator is a label for only selecting operator tests LabelOperator = "operator" // LabelPerformance is the string for labelling performance tests LabelPerformance = "performance" // LabelPlugin is a label for selecting plugin tests LabelPlugin = "plugin" // LabelPodScheduling is a label for selecting pod-scheduling test LabelPodScheduling = "pod-scheduling" // LabelPostgresConfiguration is a label for selecting postgres-configuration test LabelPostgresConfiguration = "postgres-configuration" // LabelPublicationSubscription is a label for selecting the publication / subscription test LabelPublicationSubscription = "publication-subscription" // LabelRecovery is a label for selecting recovery tests LabelRecovery = "recovery" // LabelReplication is a label for selecting replication tests LabelReplication = "replication" // LabelSecurity is a label for selecting security tests LabelSecurity = "security" // LabelSelfHealing is a label for selecting self-healing tests LabelSelfHealing = "self-healing" // LabelServiceConnectivity is a label for selecting service connections tests LabelServiceConnectivity = "service-connectivity" // LabelSmoke is a label for selecting smoke tests LabelSmoke = "smoke" // LabelSnapshot is a label for selecting snapshot tests LabelSnapshot = "snapshot" // LabelStorage is a label for selecting storage tests LabelStorage = "storage" // LabelTablespaces is a label for selecting the tablespaces test LabelTablespaces = "tablespaces" // LabelUpgrade is a label for upgrade tests LabelUpgrade = "upgrade" // LabelPostgresMajorUpgrade is a label for Cluster major version upgrade tests LabelPostgresMajorUpgrade = "postgres-major-upgrade" )
List of the labels we use for labeling test specs See https://github.com/onsi/ginkgo/blob/c70867a9661d9eb6eeb706dd7580bf510a99f35b/docs/MIGRATING_TO_V2.md
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level int
Level - Define test importance. Each test should define its own importance level, and compare it with the test depth used to run the suite to choose if the test can be skipped.
type TestEnvLevel ¶
type TestEnvLevel struct {
*environment.TestingEnvironment
Depth int
}
TestEnvLevel struct for operator testing
func TestLevel ¶
func TestLevel() (*TestEnvLevel, error)
TestLevel creates the environment for testing
Directories
¶
| Path | Synopsis |
|---|---|
|
Package utils contains helper functions/methods for e2e
|
Package utils contains helper functions/methods for e2e |
|
backups
Package backups provides backup utilities
|
Package backups provides backup utilities |
|
cloudvendors
Package cloudvendors provides the variables to define on which cloud vendor the e2e test is running
|
Package cloudvendors provides the variables to define on which cloud vendor the e2e test is running |
|
clusterutils
Package clusterutils provides functions to handle cluster actions
|
Package clusterutils provides functions to handle cluster actions |
|
deployments
Package deployments contains functions to control deployments
|
Package deployments contains functions to control deployments |
|
environment
Package environment contains functions to handle the TestingEnvironment struct
|
Package environment contains functions to handle the TestingEnvironment struct |
|
envsubst
Package envsubst manage the replacemes of env variables in a file
|
Package envsubst manage the replacemes of env variables in a file |
|
exec
Package exec provides functions to execute commands inside pods or from local
|
Package exec provides functions to execute commands inside pods or from local |
|
fencing
Package fencing provides functions to manage the fencing on cnpg clusters
|
Package fencing provides functions to manage the fencing on cnpg clusters |
|
forwardconnection
Package forwardconnection provides an easy interface to create a port forward from the local test to a service or pod inside the testing k8s cluster
|
Package forwardconnection provides an easy interface to create a port forward from the local test to a service or pod inside the testing k8s cluster |
|
importdb
Package importdb contains the functions to import a database
|
Package importdb contains the functions to import a database |
|
logs
Package logs provides a way to parse and get the logs of a pod
|
Package logs provides a way to parse and get the logs of a pod |
|
minio
Package minio contains all the require functions to setup a MinIO deployment and query this MinIO deployment using the MinIO API
|
Package minio contains all the require functions to setup a MinIO deployment and query this MinIO deployment using the MinIO API |
|
namespaces
Package namespaces provides utilities to manage namespaces
|
Package namespaces provides utilities to manage namespaces |
|
nodes
Package nodes contains the helper methods/functions for nodes
|
Package nodes contains the helper methods/functions for nodes |
|
objects
Package objects provides functions to manage pure objects in Kubernetes
|
Package objects provides functions to manage pure objects in Kubernetes |
|
openshift
Package openshift provides functions to work with OLM CRDs
|
Package openshift provides functions to work with OLM CRDs |
|
operator
Package operator provides functions to handle and manage the operator
|
Package operator provides functions to handle and manage the operator |
|
pods
Package pods provides pod utilities to manage pods inside K8s
|
Package pods provides pod utilities to manage pods inside K8s |
|
postgres
Package postgres provides functions to handle postgres in cnpg clusters
|
Package postgres provides functions to handle postgres in cnpg clusters |
|
proxy
Package proxy provides functions to use the proxy subresource to call a pod
|
Package proxy provides functions to use the proxy subresource to call a pod |
|
replicationslot
Package replicationslot provides functions to manage the replication slot of a cnpg cluster
|
Package replicationslot provides functions to manage the replication slot of a cnpg cluster |
|
run
Package run contains functions to execute commands locally
|
Package run contains functions to execute commands locally |
|
secrets
Package secrets provides functions to manage and handle secrets
|
Package secrets provides functions to manage and handle secrets |
|
services
Package services provides functions tomanage services inside K8s
|
Package services provides functions tomanage services inside K8s |
|
sternmultitailer
Package sternmultitailer handle the logs of every pod in the tests saving them in a structured way within a directory.
|
Package sternmultitailer handle the logs of every pod in the tests saving them in a structured way within a directory. |
|
storage
Package storage provides functions to manage enything related to storage
|
Package storage provides functions to manage enything related to storage |
|
timeouts
Package timeouts contains the timeouts for the E2E test suite
|
Package timeouts contains the timeouts for the E2E test suite |
|
yaml
Package yaml provides functions to handle yaml files
|
Package yaml provides functions to handle yaml files |
Click to show internal directories.
Click to hide internal directories.