versioning: misc cleanups

highlights:
 - NetConf struct finally includes cniVersion field
 - improve test coverage of current version report behavior
 - godoc a few key functions
 - allow tests to control version list reported by no-op plugin
This commit is contained in:
Gabe Rosenhouse
2016-09-06 11:22:27 -04:00
parent bf31ed1591
commit d5e2e375d4
10 changed files with 162 additions and 74 deletions

View File

@ -24,11 +24,17 @@ import (
// Debug is used to control and record the behavior of the noop plugin
type Debug struct {
ReportResult string
ReportError string
ReportStderr string
Command string
CmdArgs skel.CmdArgs
// Report* fields allow the test to control the behavior of the no-op plugin
ReportResult string
ReportError string
ReportStderr string
ReportVersionSupport []string
// Command stores the CNI command that the plugin received
Command string
// CmdArgs stores the CNI Args and Env Vars that the plugin recieved
CmdArgs skel.CmdArgs
}
// ReadDebug will return a debug file recorded by the noop plugin