test

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

README

Configurating Travis

Settings

Some tests are performed against a real IBM cloud account. The following environment variable must be set:

  • BLUEMIX_API_KEY: the IBM Cloud API Key of the account use to run tests
  • BLUEMIX_ORG: the IBM cloud organization
  • BLUEMIX_SPACE: the IBM cloud space
  • BLUEMIX_REGION: the IBM cloud region

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureSeedDefaults

func ConfigureSeedDefaults(configmaps corev1.ConfigMapInterface)

ConfigureSeedDefaults sets config-ibm-cloud-operator

func ConfigureSeedSecret

func ConfigureSeedSecret(secrets corev1.SecretInterface)

ConfigureSeedSecret sets secret-ibm-cloud-operator and secret-ibm-cloud-operator-tokens

func CreateNamespaceOrDie

func CreateNamespaceOrDie(namespaces corev1.NamespaceInterface, stem string) string

CreateNamespaceOrDie creates a new unique namespace from stem

func DeleteNamespace

func DeleteNamespace(namespaces corev1.NamespaceInterface, namespace string)

DeleteNamespace deletes a kube namespace. Wait for all resources to be really gone.

func DeleteObject

func DeleteObject(context rcontext.Context, obj runtime.Object, async bool)

DeleteObject deletes an object

func EnsureNamespaceOrDie

func EnsureNamespaceOrDie(namespaces corev1.NamespaceInterface, namespace string)

EnsureNamespaceOrDie makes sure the given namespace exists.

func GetClientsetOrDie

func GetClientsetOrDie(restCfg *rest.Config) *kubernetes.Clientset

GetClientsetOrDie gets a Kube clientset for KUBECONFIG

func GetContextNamespaceOrDie

func GetContextNamespaceOrDie() string

GetContextNamespaceOrDie returns the current namespace context or "default"

func GetObject

func GetObject(context context.Context, obj runtime.Object) func() runtime.Object

GetObject gets the object from the store

func GetState

func GetState(context context.Context, obj runtime.Object) func() string

GetState gets the object status from the store

func LoadBinding

func LoadBinding(filename string) v1alpha1.Binding

LoadBinding loads the YAML spec into obj

func LoadObject

func LoadObject(filename string, obj runtime.Object) runtime.Object

LoadObject loads the YAML spec into obj

func LoadService

func LoadService(filename string) v1alpha1.Service

LoadService loads the YAML spec into obj

func PostInNs

func PostInNs(context rcontext.Context, obj runtime.Object, async bool, delay time.Duration) runtime.Object

PostInNs the object

func SetupKubeOrDie

func SetupKubeOrDie(restCfg *rest.Config, stem string) string

SetupKubeOrDie setups Kube for testing

func StartTestManager

func StartTestManager(mgr manager.Manager) chan struct{}

StartTestManager starts the manager

Types

This section is empty.

Jump to

Keyboard shortcuts

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