util

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 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 CreateApplicationTarget added in v0.7.0

func CreateApplicationTarget(f *framework.Framework, ctx *framework.TestCtx, target types.NamespacedName, l map[string]string) error

func CreateCertificateIssuer added in v0.4.1

func CreateCertificateIssuer(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, n string) error

func FailureCleanup

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 IsCertManagerInstalled added in v0.4.1

func IsCertManagerInstalled(t *testing.T, f *framework.Framework, ctx *framework.TestCtx) bool

func IsKnativeServiceDeployed added in v0.6.0

func IsKnativeServiceDeployed(t *testing.T, f *framework.Framework, ns, n string) (bool, error)

IsKnativeServiceDeployed : Check if the Knative service is deployed.

func MakeBasicRuntimeComponent

func MakeBasicRuntimeComponent(t *testing.T, f *framework.Framework, n string, ns string, replicas int32) *appstacksv1beta1.RuntimeComponent

MakeBasicRuntimeComponent : Create a simple RuntimeComponent with provided number of replicas.

func UpdateApplication

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

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

func WaitForApplicationCreated added in v0.7.0

func WaitForApplicationCreated(t *testing.T, f *framework.Framework, target types.NamespacedName) error

WaitForApplicationCreated wait for kappnav to create the generated application

func WaitForApplicationDelete added in v0.7.0

func WaitForApplicationDelete(t *testing.T, f *framework.Framework, target types.NamespacedName) error

WaitForApplicationDelete wait for kappnav to delete the generated application

func WaitForCertificate added in v0.4.1

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

WaitForCertificate : Poll for generated certificates from our cert manager functionality

func WaitForKnativeDeployment

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