common

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NamespaceLabels = map[string]string{
		"istio-injection":    "enabled",
		"verrazzano-managed": "true",
	}
)

Functions

func GetMetricLabels

func GetMetricLabels(_ string) map[string]string

func HTTPGet

func HTTPGet(url string, httpClient *retryablehttp.Client, credentials *pkg.UsernamePassword) (int, error)

HTTPGet issues an HTTP GET request with basic auth to the specified URL. httpGet returns the HTTP status code and an error.

func InitScenario

func InitScenario(t *framework.TestFramework, log vzlog.VerrazzanoLogger, scenarioID string, namespace string, kubeconfig string, skipStartScenario bool)

InitScenario Starts a PSR scenario in the specified namespace; if skipStartScenario is true, the scenario start is skipped - Creates and labels and the namespace if necessary - If the env var IMAGE_PULL_SECRET is defined, we attempt to create the image pull secret in the target namespace

func StopScenario

func StopScenario(t *framework.TestFramework, log vzlog.VerrazzanoLogger, scenarioID string, namespace string, skipStopScenario bool)

StopScenario - Stops a scenario if it is running in the specified namespace; if skipStopScenario is true, we don't shut it down

Types

This section is empty.

Jump to

Keyboard shortcuts

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