config

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoTestConfig

type AutoTestConfig struct {
	Global struct {
		WorkerNum          int           `yaml:"worker_num"`
		IgnoreTestCaseFail bool          `yaml:"ignore_testcase_fail"`
		Debug              bool          `yaml:"debug"`
		RequestTimeout     time.Duration `yaml:"request_timeout"`
		Logger             struct {
			Level    string `yaml:"level"`
			FilePath string `yaml:"file_path"`
		} `yaml:"logger"`
		Report struct {
			DirPath string `yaml:"dir_path"`
		} `yaml:"report"`
	} `yaml:"global"`

	HttpRuleFiles []string `yaml:"http_rule_files"`
	GrpcRuleFiles []string `yaml:"grpc_rule_files"`
}

type Export

type Export struct {
	Xpath    string `yaml:"xpath"`
	ExportTo string `yaml:"exportTo"`
	Type     string `yaml:"type"`
}

type RequestGrpc added in v0.0.6

type RequestGrpc struct {
	Address string   `yaml:"address"`
	Symbol  string   `yaml:"symbol"`
	Headers []string `yaml:"headers"`
	Body    string   `yaml:"body"`
}

type RequestHttp added in v0.0.6

type RequestHttp struct {
	Method  string   `yaml:"method"`
	URL     string   `yaml:"url"`
	Headers []string `yaml:"headers"`
	Body    string   `yaml:"body"`
}

type TestCaseGrpc added in v0.0.6

type TestCaseGrpc struct {
	ID   uint64 `yaml:"id"`
	Desc string `yaml:"desc"`
	// Delay for a while before executing
	Delay       time.Duration    `yaml:"delay,omitempty"`
	Request     RequestGrpc      `yaml:"request"`
	OriginRules []map[string]any `yaml:"rules" json:"-"`
	DependOnIDs []uint64         `yaml:"dependOnIDs,omitempty"`
	Export      *Export          `yaml:"export"`
	VerifyRules []rule.VerifyRuleGrpc
}

func (*TestCaseGrpc) GetID added in v0.0.6

func (t *TestCaseGrpc) GetID() uint64

type TestCaseHttp added in v0.0.6

type TestCaseHttp struct {
	ID   uint64 `yaml:"id"`
	Desc string `yaml:"desc"`
	// Delay for a while before executing
	Delay       time.Duration    `yaml:"delay,omitempty"`
	Request     RequestHttp      `yaml:"request"`
	OriginRules []map[string]any `yaml:"rules" json:"-"`
	DependOnIDs []uint64         `yaml:"dependOnIDs,omitempty"`
	Export      *Export          `yaml:"export"`
	VerifyRules []rule.VerifyRule
}

func (*TestCaseHttp) GetID added in v0.0.6

func (t *TestCaseHttp) GetID() uint64

Jump to

Keyboard shortcuts

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