testing

package
v0.0.0-...-e2054a2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomAlphaString

func GenerateRandomAlphaString(length int) string

func Get2Nodes

func Get2Nodes() *corev1.NodeList

func Get2NodesOpenStack

func Get2NodesOpenStack() *corev1.NodeList

func Get2SvcsOfDiffTypes

func Get2SvcsOfDiffTypes() *corev1.ServiceList

func Get3NodesWithFooVMType

func Get3NodesWithFooVMType() *corev1.NodeList

func Get3NodesWithStandardD8v3VMType

func Get3NodesWithStandardD8v3VMType() *corev1.NodeList

func GetNode

func GetNode(name, vmType string) corev1.Node

func GetPV

func GetPV(name, namespace, capacity string) *corev1.PersistentVolumeClaim

func GetSvc

func GetSvc(name, ns string, opts ...svcOpts) *corev1.Service

func GetSvcsWithLoadBalancers

func GetSvcsWithLoadBalancers() *corev1.ServiceList

func LoadFixtureFromFile

func LoadFixtureFromFile(filePath string) ([]byte, error)

func NewKCPStoredSecret

func NewKCPStoredSecret(shootName, kubeconfigVal string) *corev1.Secret

func NewRuntimesDTO

func NewRuntimesDTO(subAccountID string, shootName string, opts ...NewRuntimeOpts) kebruntime.RuntimeDTO

func PrometheusFilterLabelPair

func PrometheusFilterLabelPair(pairs []*dto.LabelPair, name string) *dto.LabelPair

func PrometheusGatherAndReturn

func PrometheusGatherAndReturn(c prometheus.Collector, metricName string) (*dto.MetricFamily, error)

func StartTestServer

func StartTestServer(path string, testHandler http.HandlerFunc, g gomega.Gomega) *httptest.Server

func WithClusterIP

func WithClusterIP(service *corev1.Service)

func WithLoadBalancer

func WithLoadBalancer(service *corev1.Service)

func WithProvisionedAndDeprovisionedStatus

func WithProvisionedAndDeprovisionedStatus(statusState kebruntime.State) func(*kebruntime.RuntimeDTO)

func WithProvisioningFailedState

func WithProvisioningFailedState(runtime *kebruntime.RuntimeDTO)

func WithProvisioningSucceededStatus

func WithProvisioningSucceededStatus(statusState kebruntime.State) func(*kebruntime.RuntimeDTO)

Types

type NewRuntimeOpts

type NewRuntimeOpts func(*kebruntime.RuntimeDTO)

Jump to

Keyboard shortcuts

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