Add simple testing infrastructure

This commit is contained in:
Casey Callendrello
2017-03-13 18:05:55 +01:00
parent 168a5a0210
commit 559ffa1111
297 changed files with 117279 additions and 0 deletions

View File

@@ -116,6 +116,9 @@ func cmdAdd(args *skel.CmdArgs) error {
containerIPs = append(containerIPs, ip.Address.IP)
}
}
if len(containerIPs) == 0 {
return fmt.Errorf("got no container IPs")
}
// Pass through the result for the next plugin
return types.PrintResult(conf.PrevResult, conf.CNIVersion)