Tests the new Hook

Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com>
This commit is contained in:
Renaud Gaubert
2020-05-09 01:05:12 -07:00
parent ccdd75760c
commit 2f7bdf9d3b
5 changed files with 156 additions and 72 deletions
@@ -8,6 +8,10 @@ import (
"testing"
)
var (
HookNameList = []HookName{Prestart, CreateRuntime, CreateContainer, StartContainer, Poststart, Poststop}
)
func loadConfig(name string) (*Config, error) {
f, err := os.Open(filepath.Join("../sample_configs", name))
if err != nil {