testing

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	K8sDistroAKSAzureLinux  = "aks-AzureLinux"
	K8sDistroAKSUbuntu      = "aks-Ubuntu"
	K8sDistroARO            = "aro"
	K8sDistroMinikubeGH     = "minikube-github"
	K8sDistroEKSAmazonLinux = "eks-AmazonLinux"
	K8sDistroGKECOS         = "gke-COS_containerd"
)
View Source
const (
	BusyBoxImage          = "ghcr.io/inspektor-gadget/ci/busybox:latest"
	NginxImage            = "ghcr.io/inspektor-gadget/ci/nginx:latest"
	GccImage              = "ghcr.io/inspektor-gadget/ci/gcc:latest"
	NetworkMultitoolImage = "ghcr.io/inspektor-gadget/ci/network-multitool:latest"
)

Variables

This section is empty.

Functions

func CheckMinimumKernelVersion added in v0.39.0

func CheckMinimumKernelVersion(t testing.TB, minKernelVersion string) bool

CheckMinimumKernelVersion returns true if the current kernel version is less than minKernelVersion. When used in Kubernetes, it gets the kernel version from a random node in the cluster.

func GetKernelVersion added in v0.39.0

func GetKernelVersion(t testing.TB) *kernel.VersionInfo

GetKernelVersion returns the kernel version of the current node. When used in Kubernetes, it gets the kernel version from a random node in the cluster.

func InitUnitTest added in v0.35.0

func InitUnitTest(t testing.TB)

func MinimumKernelVersion added in v0.35.0

func MinimumKernelVersion(t testing.TB, minKernelVersion string)

MinimumKernelVersion skips the test if the current kernel version is less than minKernelVersion. When used in Kubernetes, it gets the kernel version from a random node in the cluster.

func RemoveMemlock added in v0.35.0

func RemoveMemlock(t testing.TB)

func RequireEnvironmentVariables

func RequireEnvironmentVariables(t testing.TB)

func SkipK8sDistros added in v0.38.0

func SkipK8sDistros(t testing.TB, distros ...string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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