testutil

package
v0.0.99 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: UPL-1.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const IstioSystemNamespace = "istio-system"

IstioSystemNamespace duplicate of managed.IstioSystemNamespace to avoid circular import

Variables

This section is empty.

Functions

func GetManagedClusterConnections

func GetManagedClusterConnections() map[string]*util.ManagedClusterConnection

GetManagedClusterConnections returns a test map of managed cluster connections that uses fake client sets

func GetModelBindingPair

func GetModelBindingPair() *types.ModelBindingPair

GetModelBindingPair returns a test model binding pair.

func GetModelBindingPairWithNames

func GetModelBindingPairWithNames(modelName string, bindingName string, ns string) *types.ModelBindingPair

GetModelBindingPairWithNames returns a test model and binding pair with the specified model and binding names in given NS.

func GetTestClusters

func GetTestClusters() []v1beta1.VerrazzanoManagedCluster

GetTestClusters returns a list of Verrazzano Managed Cluster resources.

func InvokeHTTPHandler

func InvokeHTTPHandler(request *http.Request, path string, handler func(http.ResponseWriter, *http.Request)) *httptest.ResponseRecorder

InvokeHTTPHandler sets up a HTTP handler

func StringArrayContains

func StringArrayContains(s []string, e string) bool

StringArrayContains checks if a string exists in array of strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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