Documentation
¶
Index ¶
- Constants
- func AddTrackingHeaders(inner http.RoundTripper, redactor *vcr.Redactor) *requestCounter
- func NewReplayRoundTripper(inner http.RoundTripper, log logr.Logger, redactor *vcr.Redactor) http.RoundTripper
- func NewTestRecorder(cassetteName string, cfg config.Values, log logr.Logger) (vcr.Interface, error)
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(inner http.RoundTripper, redactor *vcr.Redactor) *requestCounter
func NewReplayRoundTripper ¶
func NewReplayRoundTripper( inner http.RoundTripper, log logr.Logger, redactor *vcr.Redactor, ) http.RoundTripper
newReplayRoundTripper creates a new replayRoundTripper that will replay selected requests to improve test resilience.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.