Documentation
¶
Index ¶
- func ConfigSpec() docs.FieldSpec
- type BloblangCondition
- type Case
- type ContentEqualsCondition
- type ContentJSONContainsCondition
- type ContentJSONEqualsCondition
- type ContentMatchesCondition
- type FileEqualsCondition
- type FileJSONContainsCondition
- type FileJSONEqualsCondition
- type InputConfig
- type MetadataEqualsCondition
- type OutputCondition
- type OutputConditionsMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigSpec ¶
ConfigSpec returns a configuration spec for a template.
Types ¶
type BloblangCondition ¶
type BloblangCondition struct {
// contains filtered or unexported fields
}
BloblangCondition represents a test bloblang condition.
type Case ¶
type Case struct { Name string Environment map[string]string TargetProcessors string TargetMapping string Mocks map[string]any InputBatches [][]InputConfig OutputBatches [][]OutputConditionsMap // contains filtered or unexported fields }
Case contains a definition of a single Benthos config test case.
func CaseFromAny ¶
CaseFromAny attempts to return a Case from the untyped input parameter.
func CaseFromParsed ¶
func CaseFromParsed(pConf *docs.ParsedConfig) (c Case, err error)
CaseFromParsed extracts a Case from a parsed config.
func FromParsed ¶
func FromParsed(pConf *docs.ParsedConfig) ([]Case, error)
FromParsed extracts a Case slice from a parsed config.
type ContentEqualsCondition ¶
type ContentEqualsCondition string
ContentEqualsCondition represents a test ContentEquals condition.
type ContentJSONContainsCondition ¶
type ContentJSONContainsCondition string
ContentJSONContainsCondition represents a test ContentJSONContains condition.
type ContentJSONEqualsCondition ¶
type ContentJSONEqualsCondition string
ContentJSONEqualsCondition represents a test ContentJSONEquals condition.
type ContentMatchesCondition ¶
type ContentMatchesCondition string
ContentMatchesCondition represents a test ContentMatches condition.
type FileEqualsCondition ¶
type FileEqualsCondition string
FileEqualsCondition represents a test FileEquals condition.
type FileJSONContainsCondition ¶
type FileJSONContainsCondition string
FileJSONContainsCondition represents a test FileJSONContains condition.
type FileJSONEqualsCondition ¶
type FileJSONEqualsCondition string
FileJSONEqualsCondition represents a test FileJSONEquals condition.
type InputConfig ¶
InputConfig represents the test input config.
func InputFromParsed ¶
func InputFromParsed(pConf *docs.ParsedConfig) (conf InputConfig, err error)
InputFromParsed creates an InputConfig from a parsed config.
type MetadataEqualsCondition ¶
MetadataEqualsCondition represents a test MetadataEquals condition.
type OutputCondition ¶
OutputCondition contains a test output condition.
type OutputConditionsMap ¶
type OutputConditionsMap map[string]OutputCondition
OutputConditionsMap represents a collection of output conditions.
func OutputConditionsFromParsed ¶
func OutputConditionsFromParsed(pConf *docs.ParsedConfig) (m OutputConditionsMap, err error)
OutputConditionsFromParsed extracts an OutputConditionsMap from a parsed config.