Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodyResult ¶
type DB ¶
type DB interface { Read(ctx context.Context, cid string, user, app, id *string, from, to *time.Time, offset int, limit int) ([]*TestRun, error) Upsert(ctx context.Context, run TestRun) error ReadOne(ctx context.Context, id string) (*TestRun, error) ReadTest(ctx context.Context, id string) (Test, error) ReadTests(ctx context.Context, runID string) ([]Test, error) PutTest(ctx context.Context, t Test) error Increment(ctx context.Context, success, failure bool, id string) error }
type DepMetaResult ¶
type DepResult ¶
type DepResult struct { Name string `json:"name" bson:"name"` Type models.DependencyType `json:"type" bson:"type"` Meta []DepMetaResult `json:"meta" bson:"meta"` }
type HeaderResult ¶
type Result ¶
type Result struct { StatusCode IntResult `json:"status_code" bson:"status_code"` HeadersResult []HeaderResult `json:"headers_result" bson:"headers_result"` BodyResult BodyResult `json:"body_result" bson:"body_result"` DepResult []DepResult `json:"dep_result" bson:"dep_result"` }
type Run ¶
type Run struct {
// contains filtered or unexported fields
}
type Test ¶
type Test struct { ID string `json:"id" bson:"_id"` Status TestStatus `json:"status" bson:"status"` Started int64 `json:"started" bson:"started"` Completed int64 `json:"completed" bson:"completed"` RunID string `json:"run_id" bson:"run_id"` TestCaseID string `json:"testCaseID" bson:"test_case_id"` URI string `json:"uri" bson:"uri"` Req models.HttpReq `json:"req" bson:"req"` Dep []models.Dependency `json:"dep" bson:"dep"` Resp models.HttpResp `json:"http_resp" bson:"http_resp,omitempty"` Noise []string `json:"noise" bson:"noise"` Result Result `json:"result" bson:"result"` }
type TestRun ¶
type TestRun struct { ID string `json:"id" bson:"_id"` Created int64 `json:"created" bson:"created,omitempty"` Updated int64 `json:"updated" bson:"updated,omitempty"` Status TestRunStatus `json:"status" bson:"status"` CID string `json:"cid" bson:"cid,omitempty"` App string `json:"app" bson:"app,omitempty"` User string `json:"user" bson:"user,omitempty"` Success int `json:"success" bson:"success,omitempty"` Failure int `json:"failure" bson:"failure,omitempty"` Total int `json:"total" bson:"total,omitempty"` Tests []Test `json:"tests" bson:"-"` }
type TestRunStatus ¶
type TestRunStatus string
const ( TestRunStatusRunning TestRunStatus = "RUNNING" TestRunStatusFailed TestRunStatus = "FAILED" TestRunStatusPassed TestRunStatus = "PASSED" )
type TestStatus ¶
type TestStatus string
const ( TestStatusPending TestStatus = "PENDING" TestStatusRunning TestStatus = "RUNNING" TestStatusFailed TestStatus = "FAILED" TestStatusPassed TestStatus = "PASSED" )
Click to show internal directories.
Click to hide internal directories.