tests

package
v1.17.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package tests contains the test infrastructure of the CloudNativePG operator

Index

Constants

View Source
const (
	// LabelDisruptive is the string for labelling disruptive tests
	LabelDisruptive = "disruptive"

	// LabelPerformance is the string for labelling performance tests
	LabelPerformance = "performance"

	// LabelUpgrade is the string for labelling upgrade tests
	LabelUpgrade = "upgrade"

	// LabelNoOpenshift is the string for labelling tests that don't run on Openshift
	LabelNoOpenshift = "no-openshift"

	// LabelIgnoreFails is the string for labelling tests that should not be considered when failing.
	LabelIgnoreFails = "ignore-fails"

	// LabelBackupRestore is a label for only selecting backup and restore tests
	LabelBackupRestore = "backup-restore"
)

List of the labels we use for labeling test specs See https://github.com/onsi/ginkgo/v2/blob/ver2/docs/MIGRATING_TO_V2.md#label-decoration

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.

const (
	Highest Level = iota
	High
	Medium
	Low
	Lowest
)

Declare constants for each level

type TestEnvLevel

type TestEnvLevel struct {
	*utils.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
nodes
Package nodes contains the helper methods/functions for nodes
Package nodes contains the helper methods/functions for nodes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL