testing

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clean

type Clean struct {
	CleanPrepare bool `yaml:"cleanPrepare"`
}

type Prepare

type Prepare struct {
	Kubernetes []string `yaml:"kubernetes"`
}

type Request

type Request struct {
	API    string            `yaml:"api"`
	Method string            `yaml:"method"`
	Query  map[string]string `yaml:"query"`
	Header map[string]string `yaml:"header"`
	Body   string            `yaml:"body"`
}

type Response

type Response struct {
	StatusCode int               `yaml:"statusCode"`
	Body       string            `yaml:"body"`
	Header     map[string]string `yaml:"header"`
}

type TestCase

type TestCase struct {
	Name    string
	Group   string
	Prepare Prepare  `yaml:"prepare"`
	Request Request  `yaml:"request"`
	Expect  Response `yaml:"expect"`
	Clean   Clean    `yaml:"clean"`
}

func Parse

func Parse(configFile string) (testCase *TestCase, err error)

Jump to

Keyboard shortcuts

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