Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandError added in v0.6.0

func CommandError(t *testing.T, err error, out []byte) error

CommandError : Reports back an error if a command fails to execute

func FailureCleanup added in v0.2.2

func FailureCleanup(t *testing.T, f *framework.Framework, ns string, failure error)

FailureCleanup : Log current state of the namespace and exit with fatal

func InitializeContext

func InitializeContext(t *testing.T, clean, retryInterval time.Duration) (*framework.TestCtx, error)

InitializeContext : Sets up initial context

func MakeBasicAppsodyApplication

func MakeBasicAppsodyApplication(t *testing.T, f *framework.Framework, n string, ns string, replicas int32) *appsodyv1beta1.AppsodyApplication

MakeBasicAppsodyApplication : Create a simple Appsody App with provided number of replicas.

func ResetConfigMap added in v0.2.2

func ResetConfigMap(t *testing.T, f *framework.Framework, configMap *corev1.ConfigMap, cmName string, fileName string, namespace string)

ResetConfigMap : Resets the configmaps to original empty values, this is required to allow tests to be run after the configmaps test

func UpdateApplication added in v0.4.1

func UpdateApplication(f *framework.Framework, target types.NamespacedName, update func(r *appsodyv1beta1.AppsodyApplication)) error

UpdateApplication updates target app using provided function, retrying in the case that status has changed

func WaitForKnativeDeployment added in v0.2.2

func WaitForKnativeDeployment(t *testing.T, f *framework.Framework, ns, n string, retryInterval, timeout time.Duration) error

WaitForKnativeDeployment : Poll for ksvc creation when createKnativeService is set to true

func WaitForStatefulSet

func WaitForStatefulSet(t *testing.T, kc kubernetes.Interface, ns, n string, replicas int, retryInterval, timeout time.Duration) error

WaitForStatefulSet : Identical to WaitForDeployment but for StatefulSets.

Types

This section is empty.

Jump to

Keyboard shortcuts

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