horizontest

package
v0.0.0-...-9117f35 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package horizontest provides constants and utilities for horizon testing functionality

Index

Constants

View Source
const (
	// ServiceName is the name of the horizon test service
	ServiceName = "horizontest"

	// HorizonTest is the definition of the horizontest group
	HorizonTest storage.PropagationType = "HorizonTest"

	// PodRunAsUser is the UID to run the HorizonTest pod as
	PodRunAsUser = int64(42455)

	// PodRunAsGroup is the GID to run the HorizonTest pod as
	PodRunAsGroup = int64(42455)
)

Variables

View Source
var (
	// HorizonTestPropagation is the definition of the HorizonTest propagation service
	HorizonTestPropagation = []storage.PropagationType{HorizonTest}

	// PodCapabilities defines the Linux capabilities for HorizonTest pods
	PodCapabilities = []corev1.Capability{"NET_ADMIN", "NET_RAW"}
)

Functions

func GetVolumeMounts

func GetVolumeMounts(
	instance *testv1beta1.HorizonTest,
	mountCerts bool,
	mountKubeconfig bool,
	svc []storage.PropagationType,
) []corev1.VolumeMount

GetVolumeMounts - returns a list of volume mounts for the test container

func GetVolumes

func GetVolumes(
	instance *testv1beta1.HorizonTest,
	logsPVCName string,
	mountCerts bool,
	mountKubeconfig bool,
	svc []storage.PropagationType,
) []corev1.Volume

GetVolumes - returns a list of volumes for the test pod

func Pod

func Pod(
	instance *testv1beta1.HorizonTest,
	labels map[string]string,
	podName string,
	logsPVCName string,
	mountCerts bool,
	mountKubeconfig bool,
	envVars map[string]env.Setter,
	containerImage string,
) *corev1.Pod

Pod - prepare pod to run Horizon tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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