report

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ErrClassDeployment represents an error during deployment
	ErrClassDeployment = "Deployment"
	// ErrClassValidation represents an error during validation (tests)
	ErrClassValidation = "Validation"
	// ErrClassAzcli represents an error with Azure CLI
	ErrClassAzcli = "AzCLI"
	// ErrClassNone represents absence of error
	ErrClassNone = "None"

	// ErrSuccess represents a success, for some reason
	ErrSuccess = "Success"
	// ErrUnknown represents an unknown error
	ErrUnknown = "UnspecifiedError"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorInfo

type ErrorInfo struct {
	TestName string
	Step     string
	ErrName  string
	ErrClass string
	Location string
}

ErrorInfo represents the CI error

func NewErrorInfo

func NewErrorInfo(testName, step, errName, errClass, location string) *ErrorInfo

NewErrorInfo TBD needs definition

type ErrorStat

type ErrorStat struct {
	Count     int            `json:"count"`
	Locations map[string]int `json:"locations"`
}

ErrorStat represents the aggregate error count and region

type Manager

type Manager struct {
	JobName     string    `json:"job"`
	Build       string    `json:"build"`
	Deployments int       `json:"deployments"`
	Errors      int       `json:"errors"`
	StartTime   time.Time `json:"startTime"`
	Duration    string    `json:"duration"`
	// Failure map: key=error, value=locations
	Failures  map[string]*ErrorStat `json:"failures"`
	LogErrors logErrors             `json:"-"`
	// contains filtered or unexported fields
}

Manager represents the details about a build and errors in that build

func New

func New(jobName string, build string, nDeploys int, logErrorsFileName string) *Manager

New creates a new error report

func (*Manager) Copy

func (h *Manager) Copy() *Manager

Copy TBD needs definition [ToDo]

func (*Manager) CreateTestReport

func (h *Manager) CreateTestReport(filepath string) error

CreateTestReport TBD needs definition

func (*Manager) Process

func (h *Manager) Process(txt, step, testName, location string) *ErrorInfo

Process TBD needs definition

Jump to

Keyboard shortcuts

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