helpers

package
v1.2.3-durham Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsentOperandFromRequest

func AbsentOperandFromRequest(f *framework.Framework, ns, opName string) (*v1alpha1.OperandRequest, error)

AbsentOperandFromRequest is used to delete an operator and operand from OperandRequest

func CreateNamespace

func CreateNamespace(f *framework.Framework, ctx *framework.TestCtx, name string) error

CreateNamespace is used to create a new namespace for test

func CreateOperandBindInfo

func CreateOperandBindInfo(f *framework.Framework, ctx *framework.TestCtx, ns string) (*v1alpha1.OperandBindInfo, error)

CreateOperandBindInfo is used to create an OperandBindInfo instance

func CreateOperandConfig

func CreateOperandConfig(f *framework.Framework, ctx *framework.TestCtx, ns string) (*v1alpha1.OperandConfig, error)

CreateOperandConfig is used to create an OperandConfig instance

func CreateOperandRegistry

func CreateOperandRegistry(f *framework.Framework, ctx *framework.TestCtx, ns string) (*v1alpha1.OperandRegistry, error)

CreateOperandRegistry is used to create an OperandRegistry instance

func CreateOperandRequest

func CreateOperandRequest(f *framework.Framework, ctx *framework.TestCtx, req *v1alpha1.OperandRequest) (*v1alpha1.OperandRequest, error)

CreateOperandRequest is used to create an OperandRequest instance

func DeleteNamespace

func DeleteNamespace(f *framework.Framework, name string) error

DeleteNamespace is delete the test namespace

func DeleteOperandBindInfo

func DeleteOperandBindInfo(f *framework.Framework, bi *v1alpha1.OperandBindInfo) error

DeleteOperandBindInfo is used to delete an OperandBindInfo instance

func DeleteOperandConfig

func DeleteOperandConfig(f *framework.Framework, ci *v1alpha1.OperandConfig) error

DeleteOperandConfig is used to delete an OperandConfig instance

func DeleteOperandRegistry

func DeleteOperandRegistry(f *framework.Framework, reg *v1alpha1.OperandRegistry) error

DeleteOperandRegistry is used to delete an OperandRegistry instance

func DeleteOperandRequest

func DeleteOperandRequest(req *v1alpha1.OperandRequest, f *framework.Framework) error

DeleteOperandRequest is used to delete an OperandRequest instance

func NewOperandRequestCR1

func NewOperandRequestCR1(name, namespace string) *v1alpha1.OperandRequest

NewOperandRequestCR1 is return an OperandRequest CR object

func NewOperandRequestCR2

func NewOperandRequestCR2(name, namespace string) *v1alpha1.OperandRequest

NewOperandRequestCR2 is return an OperandRequest CR object

func PresentOperandFromRequest

func PresentOperandFromRequest(f *framework.Framework, ns, opName string) (*v1alpha1.OperandRequest, error)

PresentOperandFromRequest is used to add an operator and operand into OperandRequest

func RetrieveConfigmap

func RetrieveConfigmap(f *framework.Framework, name, namespace string) (*corev1.ConfigMap, error)

RetrieveConfigmap is get a configmap

func RetrieveOperandBindInfo

func RetrieveOperandBindInfo(f *framework.Framework, obj runtime.Object, ns string) error

RetrieveOperandBindInfo is used to get an OperandBindInfo instance

func RetrieveOperandConfig

func RetrieveOperandConfig(f *framework.Framework, obj runtime.Object, ns string) error

RetrieveOperandConfig is used to get an OperandConfig instance

func RetrieveOperandRegistry

func RetrieveOperandRegistry(f *framework.Framework, obj runtime.Object, ns string) error

RetrieveOperandRegistry is used to get an OperandRegistry instance

func RetrieveOperandRquest

func RetrieveOperandRquest(f *framework.Framework, obj runtime.Object, ns string) error

RetrieveOperandRquest is used to get an OperandRquest instance

func RetrieveSecret

func RetrieveSecret(f *framework.Framework, name, namespace string) (*corev1.Secret, error)

RetrieveSecret is get a secret

func UpdateOperandBindInfo

func UpdateOperandBindInfo(f *framework.Framework, ns string) (*v1alpha1.OperandBindInfo, error)

UpdateOperandBindInfo is used to update an OperandBindInfo instance

func UpdateOperandConfig

func UpdateOperandConfig(f *framework.Framework, ns string) error

UpdateOperandConfig is used to update an OperandConfig instance

func UpdateOperandRegistry

func UpdateOperandRegistry(f *framework.Framework, ns string) error

UpdateOperandRegistry is used to update an OperandRegistry instance

func WaitBindInfoStatus

func WaitBindInfoStatus(f *framework.Framework, expectedPhase v1alpha1.BindInfoPhase, ns string) (*v1alpha1.OperandBindInfo, error)

WaitBindInfoStatus is wait for bindinfo phase become to expected phase

func WaitConfigStatus

func WaitConfigStatus(f *framework.Framework, expectedPhase v1alpha1.ServicePhase, ns string) (*v1alpha1.OperandConfig, error)

WaitConfigStatus is wait for config phase become to expected phase

func WaitRegistryStatus

func WaitRegistryStatus(f *framework.Framework, expectedPhase v1alpha1.RegistryPhase, ns string) (*v1alpha1.OperandRegistry, error)

WaitRegistryStatus is wait for registry phase become to expected phase

func WaitRequestStatus

func WaitRequestStatus(f *framework.Framework, expectedPhase v1alpha1.ClusterPhase, ns string) (*v1alpha1.OperandRequest, error)

WaitRequestStatus is wait for request phase become to expected phase

Types

This section is empty.

Jump to

Keyboard shortcuts

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