Documentation ¶
Index ¶
- type Probe
- type ProbeAudit
- type ScenarioAudit
- type StepAudit
- type SummaryState
- func (s *SummaryState) GetProbeLog(n string) *Probe
- func (s *SummaryState) LogPodName(n string)
- func (s *SummaryState) LogProbeMeta(name string, key string, value interface{})
- func (s *SummaryState) PrintSummary()
- func (s *SummaryState) ProbeComplete(name string)
- func (s *SummaryState) SetProbrStatus()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
type Probe struct { Meta map[string]interface{} PodsCreated int PodsDestroyed int ScenariosAttempted int ScenariosSucceeded int ScenariosFailed int Result string // contains filtered or unexported fields }
func (*Probe) CountPodCreated ¶
CountPodCreated increments pods_created for probe
func (*Probe) CountPodDestroyed ¶
func (e *Probe) CountPodDestroyed()
CountPodDestroyed increments pods_destroyed for probe
func (*Probe) InitializeAuditor ¶
func (e *Probe) InitializeAuditor(name string, tags []*messages.Pickle_PickleTag) *ScenarioAudit
type ProbeAudit ¶
type ProbeAudit struct { Name string PodsDestroyed *int ScenariosAttempted *int ScenariosSucceeded *int ScenariosFailed *int Result *string Scenarios map[int]*ScenarioAudit // contains filtered or unexported fields }
func (*ProbeAudit) Write ¶
func (e *ProbeAudit) Write()
type ScenarioAudit ¶
type ScenarioAudit struct { Name string Result string // Passed / Failed / Given Not Met Tags []string Steps map[int]*StepAudit }
func (*ScenarioAudit) AuditScenarioStep ¶
func (p *ScenarioAudit) AuditScenarioStep(description string, payload interface{}, err error)
auditScenarioStep sets description, payload, and pass/fail based on err parameter
type SummaryState ¶
type SummaryState struct { Meta map[string]interface{} Status string ProbesPassed int ProbesFailed int ProbesSkipped int Probes map[string]*Probe }
var State SummaryState
func (*SummaryState) GetProbeLog ¶
func (s *SummaryState) GetProbeLog(n string) *Probe
GetProbeLog initializes or returns existing log probe for the provided test name
func (*SummaryState) LogPodName ¶
func (s *SummaryState) LogPodName(n string)
LogPodName adds pod names to a list for user's debugging purposes
func (*SummaryState) LogProbeMeta ¶
func (s *SummaryState) LogProbeMeta(name string, key string, value interface{})
LogProbeMeta accepts a test name with a key and value to insert to the meta logs for that test. Overwrites key if already present.
func (*SummaryState) PrintSummary ¶
func (s *SummaryState) PrintSummary()
PrintSummary will print the current Probes object state, formatted to JSON, if NoSummary is not "true"
func (*SummaryState) ProbeComplete ¶
func (s *SummaryState) ProbeComplete(name string)
ProbeComplete takes an probe name and status then updates the summary & probe meta information
func (*SummaryState) SetProbrStatus ¶
func (s *SummaryState) SetProbrStatus()
SetProbrStatus evaluates the current SummaryState state to set the Status