recorder

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestRecorder

type TestRecorder struct {
	// contains filtered or unexported fields
}

TestRecorder records test operations for reproducibility and documentation

func NewTestRecorder

func NewTestRecorder(namespace string) *TestRecorder

NewTestRecorder creates a new test recorder

func (*TestRecorder) Clear

func (r *TestRecorder) Clear()

Clear clears all recorded steps

func (*TestRecorder) ExportAsMarkdown

func (r *TestRecorder) ExportAsMarkdown() string

ExportAsMarkdown exports the recorded steps as Markdown documentation

func (*TestRecorder) ExportAsShellScript

func (r *TestRecorder) ExportAsShellScript() string

ExportAsShellScript exports the recorded steps as an executable shell script

func (*TestRecorder) GetSteps

func (r *TestRecorder) GetSteps() []TestStep

GetSteps returns all recorded steps

func (*TestRecorder) RecordStep

func (r *TestRecorder) RecordStep(step TestStep)

RecordStep records a test step

func (*TestRecorder) SetTestName

func (r *TestRecorder) SetTestName(name string)

SetTestName sets the test name for this recording

type TestStep

type TestStep struct {
	Order       int
	Command     string // Exact kubectl or shell command
	Description string // Human-readable description
	Input       string // YAML or other input data
	Expected    string // Expected result
	WaitFor     string // Wait condition (e.g., "condition=available")
	Timeout     string // Timeout for the operation
}

TestStep represents a single operation in a test

Jump to

Keyboard shortcuts

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