Documentation ¶
Index ¶
- func ApplyInputOverrides(conf *config.FTWConfiguration, input *Input)
- func ApplyPlatformOverrides(conf *config.FTWConfiguration, testCase *schema.Test)
- func DescribeYamlError(yamlError error) string
- type FTWTest
- type Input
- func (i *Input) GetAutocompleteHeaders() bool
- func (i *Input) GetDestAddr() string
- func (i *Input) GetHeaders() ftwhttp.Header
- func (i *Input) GetMethod() string
- func (i *Input) GetPort() int
- func (i *Input) GetProtocol() string
- func (i *Input) GetRawRequest() ([]byte, error)
- func (i *Input) GetURI() string
- func (i *Input) GetVersion() string
- func (i *Input) ParseData() []byte
- type Output
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)
func DescribeYamlError ¶ added in v0.6.0
Types ¶
type FTWTest ¶
func GetTestFromYaml ¶
GetTestFromYaml will get the tests to be processed from a YAML string.
func GetTestsFromFiles ¶
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 ¶
func (*Input) GetAutocompleteHeaders ¶ added in v0.6.4
GetAutocompleteHeaders returns the autocompleteHeaders value, defaults to true
func (*Input) GetDestAddr ¶
GetDestAddr returns the proper semantic when the field is empty
func (*Input) GetHeaders ¶ added in v0.6.4
GetHeaders returns the headers wrapped in a ftwhttp.Header
func (*Input) GetProtocol ¶
GetProtocol returns the proper semantic when the field is empty
func (*Input) GetRawRequest ¶
GetRawRequest returns the proper raw data, and error if there was none
func (*Input) GetVersion ¶
GetVersion returns the proper semantic when the field is empty