v3

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// COUNT_HEADER is the name of the header used to record the sequence number of a request
	COUNT_HEADER = "TEST-REQUEST-ATTEMPT"

	// HASH_HEADER is the name of the header used to record the hash of a request body
	HASH_HEADER = "TEST-REQUEST-HASH"
)

Variables

This section is empty.

Functions

func AddTrackingHeaders

func AddTrackingHeaders(ids creds.AzureIDs, inner http.RoundTripper) *requestCounter

func NewReplayRoundTripper

func NewReplayRoundTripper(
	inner http.RoundTripper,
	log logr.Logger,
) http.RoundTripper

newReplayRoundTripper creates a new replayRoundTripper that will replay selected requests to improve test resilience.

func NewTestRecorder

func NewTestRecorder(
	cassetteName string,
	cfg config.Values,
	log logr.Logger,
) (vcr.Interface, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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