tests

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 7 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 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) []v12.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) *v12.Pod

func CreatePodProbeObj added in v1.4.10

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

func CreatePodVolumeObj

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

func CreateResourceLimits

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

func GetPodConditions

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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