tests

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestsVersion = "0.0.1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameters

type Parameters struct {
	Path   map[string]yaml.Node `yaml:"path,omitempty"`
	Query  map[string]yaml.Node `yaml:"query,omitempty"`
	Header map[string]yaml.Node `yaml:"header,omitempty"`
}

type Test

type Test struct {
	Name        string                          `yaml:"name"`
	Description string                          `yaml:"description,omitempty"`
	Targets     []string                        `yaml:"targets,omitempty"`
	Server      string                          `yaml:"server,omitempty"`
	Security    yaml.Node                       `yaml:"security,omitempty"`
	Parameters  *Parameters                     `yaml:"parameters,omitempty"`
	RequestBody map[string]yaml.Node            `yaml:"requestBody,omitempty"`
	Responses   map[string]map[string]yaml.Node `yaml:"responses,omitempty"`

	// Internal use only
	InternalID string   `yaml:"internalId,omitempty"`
	TestGroups []string `yaml:"testGroups,omitempty"`
}

type Tests

type Tests struct {
	Version string            `yaml:"testsVersion"`
	Tests   map[string][]Test `yaml:"tests"`
}

func Load

func Load(dir string) (*Tests, string, error)

func (Tests) Validate

func (t Tests) Validate() error

Jump to

Keyboard shortcuts

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