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) 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
Click to show internal directories.
Click to hide internal directories.