tests

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the Apache 2.0 license.

Index

Constants

View Source
const (
	TimeLayout = "2006-01-02 15:04:05.999999999 -0700 MST"
)

Variables

View Source
var (
	CgCreationTime, _ = time.Parse(TimeLayout, time.Now().String())
	RestartCount      = int32(0)
	FakeIP            = "127.0.0.1"
	TestContainerName = "testContainer"
	TestImageNginx    = "nginx"
)

Functions

func CreateACIContainerObj

func CreateACIContainerObj(currentState, PrevState string, startTime, finishTime time.Time, hasResources, hasLimits, hasGPU bool) *azaciv2.Container

func CreateACIContainersListObj

func CreateACIContainersListObj(currentState, PrevState string, startTime, finishTime time.Time, hasResources, hasLimits, hasGPU bool) []*azaciv2.Container

func CreateCGProbeObj added in v1.4.10

func CreateCGProbeObj(hasHTTPGet, hasExec bool) *azaciv2.ContainerProbe

func CreateContainerGroupEvent added in v1.6.0

func CreateContainerGroupEvent(count int32, firstTimestamp time.Time, lastTimestamp time.Time, message, name, eventType string) *azaciv2.Event

func CreateContainerGroupObj

func CreateContainerGroupObj(cgName, cgNamespace, cgState string, containers []*azaciv2.Container, provisioningState string) *azaciv2.ContainerGroup

func CreateContainerPortObj added in v1.4.10

func CreateContainerPortObj(portName string, containerPort int32) []corev1.ContainerPort

func CreateContainerResources

func CreateContainerResources(hasResources, hasLimits, hasGPU bool) *azaciv2.ResourceRequirements

func CreateContainerStateObj

func CreateContainerStateObj(state string, startTime, finishTime time.Time, exitCode int32) *azaciv2.ContainerState

func CreateGPUResource

func CreateGPUResource(hasGPU bool) *azaciv2.GpuResource

func CreatePodObj

func CreatePodObj(podName, podNamespace string) *corev1.Pod

func CreatePodProbeObj added in v1.4.10

func CreatePodProbeObj(hasHTTPGet, hasExec bool) *corev1.Probe

func CreatePodVolumeObj

func CreatePodVolumeObj(azureFileVolumeName string, fakeSecretName string, projectedVolumeName string) []corev1.Volume

func CreatePodsList added in v1.6.0

func CreatePodsList(podNames []string, podNameSpace string) []*corev1.Pod

func CreateResourceLimits

func CreateResourceLimits(hasLimits, hasGPU bool) *azaciv2.ResourceLimits

func GetPodConditions

func GetPodConditions(creationTime, readyConditionTime v1.Time, readyConditionStatus corev1.ConditionStatus) []corev1.PodCondition

Types

This section is empty.

Jump to

Keyboard shortcuts

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