test

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyInputOverrides added in v0.6.0

func ApplyInputOverrides(conf *config.FTWConfiguration, input *Input)

ApplyInputOverride will check if config had global overrides and write that into the test.

func ApplyPlatformOverrides added in v1.0.0

func ApplyPlatformOverrides(conf *config.FTWConfiguration, testCase *schema.Test)

Types

type FTWTest

type FTWTest struct {
	schema.FTWTest `yaml:",inline"`
	FileName       string
}

func GetTestFromYaml

func GetTestFromYaml(testYaml []byte, fileName string) (ftwTest *FTWTest, err error)

GetTestFromYaml will get the tests to be processed from a YAML string.

func GetTestsFromFiles

func GetTestsFromFiles(globPattern string) ([]*FTWTest, error)

GetTestsFromFiles will get the files to be processed. If some file has yaml error, will stop processing and return the error with the partial list of files read.

type Input

type Input schema.Input

func (*Input) GetData added in v1.2.0

func (i *Input) GetData() []byte

GetData returns the body data for the request, whether specified via `data` or `encoded_data`. If `data` contains Go templates, these will be evaluated.

func (*Input) GetDestAddr

func (i *Input) GetDestAddr() string

GetDestAddr returns the proper semantic when the field is empty

func (*Input) GetHeaders added in v0.6.4

func (i *Input) GetHeaders() ftwhttp.Header

GetHeaders returns the headers wrapped in a ftwhttp.Header

func (*Input) GetMethod

func (i *Input) GetMethod() string

GetMethod returns the proper semantic when the field is empty

func (*Input) GetPort

func (i *Input) GetPort() int

GetPort returns the proper semantic when the field is empty

func (*Input) GetProtocol

func (i *Input) GetProtocol() string

GetProtocol returns the proper semantic when the field is empty

func (*Input) GetURI

func (i *Input) GetURI() string

GetURI returns the proper semantic when the field is empty

func (*Input) GetVersion

func (i *Input) GetVersion() string

GetVersion returns the proper semantic when the field is empty

type Output

type Output schema.Output

Jump to

Keyboard shortcuts

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