testrun

package
v0.51.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	TestRuns []*TestRun
}

List is a list of TestRuns, used for index action

func Unmarshal

func Unmarshal(input io.Reader) (List, error)

Unmarshal unmarshals a list of TestRun records

type NfrResult added in v0.21.0

type NfrResult struct {
	ID               string `jsonapi:"primary,nfr_results"`
	Success          bool   `jsonapi:"attr,success"`
	Subject          string `jsonapi:"attr,subject"`
	SubjectAvailable bool   `jsonapi:"attr,subject_available"`
	SubjectUnit      string `jsonapi:"attr,subject_unit"`
	Expectation      string `jsonapi:"attr,expectation"`
	Type             string `jsonapi:"attr,nfr_type"`
	Disabled         bool   `jsonapi:"attr,disabled"`
	Filter           string `jsonapi:"attr,filter"`
	Metric           string `jsonapi:"attr,metric"`
}

NfrResult describes a NFR check result

func (*NfrResult) ExpectationWithUnit added in v0.21.0

func (nfr *NfrResult) ExpectationWithUnit() string

ExpectationWithUnit formats the expectation inclusing the subject's unit

func (*NfrResult) SubjectWithUnit added in v0.21.0

func (nfr *NfrResult) SubjectWithUnit() string

SubjectWithUnit formats the expectation inclusing the subject's unit

type NfrResultList added in v0.21.0

type NfrResultList struct {
	NfrResults []*NfrResult
}

NfrResultList is a list of NFR results

func UnmarshalNfrResults added in v0.21.0

func UnmarshalNfrResults(input io.Reader) (NfrResultList, error)

UnmarshalNfrResults unmarshals a list of NFR result records

type TestConfiguration added in v0.28.0

type TestConfiguration struct {
	ID                    string `jsonapi:"primary,test_configurations"`
	DisableGzip           bool   `jsonapi:"attr,disable_gzip"`
	SkipWait              bool   `jsonapi:"attr,skip_wait"`
	DumpTrafficFull       bool   `jsonapi:"attr,dump_traffic_full"`
	SessionValidationMode bool   `jsonapi:"attr,session_validation_mode"`
	ClusterSizing         string `jsonapi:"attr,cluster_sizing"`
	ClusterRegion         string `jsonapi:"attr,cluster_region"`
}

TestConfiguration contains configuration options for the test case

type TestRun

type TestRun struct {
	ID                string             `jsonapi:"primary,test_runs"`
	Scope             string             `jsonapi:"attr,scope"`
	Title             string             `jsonapi:"attr,title,omitempty"`
	Notes             string             `jsonapi:"attr,notes,omitempty"`
	State             string             `jsonapi:"attr,state,omitempty"`
	StartedBy         string             `jsonapi:"attr,started_by,omitempty"`
	StartedAt         string             `jsonapi:"attr,started_at,omitempty"`
	EndedAt           string             `jsonapi:"attr,ended_at,omitempty"`
	TestConfiguration *TestConfiguration `jsonapi:"relation,test_configuration,omitempty"`

	// attributes for in progress
	EstimatedEnd string `jsonapi:"attr,estimated_end,omitempty"`
	Progress     int    `jsonapi:"attr,progress,omitempty"`
}

TestRun represents a single TestRun

func UnmarshalSingle

func UnmarshalSingle(input io.Reader) (TestRun, error)

UnmarshalSingle unmarshals a single test run record

type TestRunShareUrlResponse added in v0.51.0

type TestRunShareUrlResponse struct {
	URL       string     `json:"url"`
	ExpiresAt *time.Time `json:"expires_at"`
}

Jump to

Keyboard shortcuts

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