Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestJob ¶
type TestJob struct { Image string `json:"image"` Commands []string `json:"commands"` State TestState `json:"state"` *symcommand.CommandOpts context.Context // contains filtered or unexported fields }
func NewTestJob ¶
type TestResult ¶
type TestResult struct { Name string `json:"name"` Index int `json:"index"` Image string `json:"image"` Commands []string `json:"commands"` State TestState `json:"state"` ExitCode int32 `json:"exitCode"` Logs string `json:"logs"` Duration time.Duration `json:"duration_s"` // contains filtered or unexported fields }
func (*TestResult) MarshalJSON ¶
func (t *TestResult) MarshalJSON() (b []byte, err error)
make sure we format duration as float of seconds
func (*TestResult) Write ¶
func (t *TestResult) Write() error
type TestRunner ¶
type TestRunner struct { CommandOpts *symcommand.CommandOpts // contains filtered or unexported fields }
func NewTestRunner ¶
func NewTestRunner(jobs []*TestJob, clientSet *kubernetes.Clientset, opts *symcommand.CommandOpts) (*TestRunner, error)
func (*TestRunner) Run ¶
func (t *TestRunner) Run(testOutputDir string) error
Click to show internal directories.
Click to hide internal directories.