helper

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

helper is a package that offers e2e test helpers. It's a badly named package. If it grows we should refactor it into something a little more manageable but it's fine for now.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurlSpinApp

func CurlSpinApp(t *testing.T, ctx context.Context, cfg *envconf.Config, namespace, spinAppName, route, body string) (string, int, error)

CurlSpinApp is a crude function for using the debug pod to send a HTTP request to a spin app within the cluster. It allows customization of the route, and all requests are GET requests unless a non-empty body is provided.

func EnsureDebugContainer

func EnsureDebugContainer(t *testing.T, ctx context.Context, cfg *envconf.Config, namespace string)

EnsureDebugContainer ensures that the helper debug container is installed right namespace. This allows us to make requests from inside the cluster regardless of the external network configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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