config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 1 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"`
		Logger             struct {
			Level    string `yaml:"level"`
			FilePath string `yaml:"filepath"`
		}
	} `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 Request

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

type TestCase

type TestCase struct {
	ID          uint64           `yaml:"id"`
	Request     Request          `yaml:"request"`
	OriginRules []map[string]any `yaml:"rules" json:"-"`
	DependOnIDs []uint64         `yaml:"dependOnIDs,omitempty"`
	Export      *Export          `yaml:"export"`
	VerifyRules []rule.VerifyRule
}

Jump to

Keyboard shortcuts

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