Update for testing functions.

This commit is contained in:
Travis Reeder
2017-07-17 11:41:10 -07:00
parent c605317250
commit f8b8c6f7e8
6 changed files with 200 additions and 49 deletions

View File

@@ -23,12 +23,19 @@ var (
errUnexpectedFileFormat = errors.New("unexpected file format for function file")
)
type inputMap struct {
Body interface{}
}
type outputMap struct {
Body interface{}
}
type fftest struct {
Name string `yaml:"name,omitempty" json:"name,omitempty"`
In *string `yaml:"in,omitempty" json:"in,omitempty"`
Out *string `yaml:"out,omitempty" json:"out,omitempty"`
Err *string `yaml:"err,omitempty" json:"err,omitempty"`
Env map[string]string `yaml:"env,omitempty" json:"env,omitempty"`
Name string `yaml:"name,omitempty" json:"name,omitempty"`
Input *inputMap `yaml:"input,omitempty" json:"input,omitempty"`
Output *outputMap `yaml:"outoutput,omitempty" json:"output,omitempty"`
Err *string `yaml:"err,omitempty" json:"err,omitempty"`
Env map[string]string `yaml:"env,omitempty" json:"env,omitempty"`
}
type funcfile struct {