kubeassert

package module
v0.0.0-...-0d68d12 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

kubeassert provides a set of assertion helpers for testing Kubernetes resources. It extends the e2e-framework package with a set of predefined assertions (e.g. a Deployment is ready) as well as additional helper functionality.

Index

Constants

This section is empty.

Variables

View Source
var (
	WithLabels           = assertion.WithResourceLabels
	WithFields           = assertion.WithResourceFields
	WithInterval         = assertion.WithInterval
	WithTimeout          = assertion.WithTimeout
	WithBuilder          = assertion.WithBuilder
	WithRequireT         = assertion.WithRequireT
	WithNamespace        = assertion.WithResourceNamespace
	WithNamespaceFromEnv = assertion.WithResourceNamespaceFromTestEnv
	WithResourceName     = assertion.WithResourceName
	WithSetup            = assertion.WithSetup
	WithTeardown         = assertion.WithTeardown

	NewDeploymentAssertion = deployments.NewDeploymentAssertion
	NewNamespaceAssertion  = namespaces.NewNamespaceAssertion
	NewCRDAssertion        = crds.NewCRDAssertion
	NewPDBAssertion        = pdbs.NewPDBAssertion
	NewPodAssertion        = pods.NewPodAssertion
	NewSecretAssertion     = secrets.NewSecretAssertion

	ApplyKustomization     = assertionhelpers.ApplyKustomization
	CreateResourceFromPath = assertionhelpers.CreateResourceFromPath
	DeleteResourceFromPath = assertionhelpers.DeleteResourceFromPath
	Sleep                  = assertionhelpers.Sleep
	TestAssertions         = assertionhelpers.TestAssertions
)

Functions

This section is empty.

Types

type Assertion

type Assertion = assertion.Assertion

type CRDAssertion

type CRDAssertion = crds.CRDAssertion

type DeploymentAssertion

type DeploymentAssertion = deployments.DeploymentAssertion

type NamespaceAssertion

type NamespaceAssertion = namespaces.NamespaceAssertion

type PDBAssertion

type PDBAssertion = pdbs.PDBAssertion

type PodAssertion

type PodAssertion = pods.PodAssertion

type SecretAssertion

type SecretAssertion = secrets.SecretAssertion

Directories

Path Synopsis
internal
assertion
The assertion package provides common functionality used to define assertions against a set of one or more Kubernetes resources.
The assertion package provides common functionality used to define assertions against a set of one or more Kubernetes resources.
assertionhelpers
assertionhelpers contains functionality that aids in the creation and use of assertions.
assertionhelpers contains functionality that aids in the creation and use of assertions.
crds
crds contains assertions for CustomResourceDefinitions.
crds contains assertions for CustomResourceDefinitions.
deployments
deployments package contains assertions for Kubernetes Deployments.
deployments package contains assertions for Kubernetes Deployments.
namespaces
namespace contains assertions for Kubernetes Namespaces.
namespace contains assertions for Kubernetes Namespaces.
pdbs
pdbs contains assertions for Kubernetes PodDisruptionBudgets.
pdbs contains assertions for Kubernetes PodDisruptionBudgets.
pods
pods contains assertions for Kubernetes Pods.
pods contains assertions for Kubernetes Pods.
secrets
secrets contains assertions for Kubernetes Secrets.
secrets contains assertions for Kubernetes Secrets.
testhelpers
testhelpers contains helper functions specifically for testing assertion functionality.
testhelpers contains helper functions specifically for testing assertion functionality.

Jump to

Keyboard shortcuts

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