add test to make sure volume is gone

pull/8224/head
Sharif Elgamal 2020-05-20 15:23:46 -07:00
parent 01145c3c99
commit c3f959c4aa
1 changed files with 9 additions and 2 deletions

View File

@ -189,4 +189,11 @@ func validateDeleteNodeFromMultiNode(ctx context.Context, t *testing.T, profile
t.Errorf("status says both kubelets are not running: args %q: %v", rr.Command(), rr.Stdout.String())
}
if DockerDriver() {
rr, err := Run(t, exec.Command("docker", "volume", "ls"))
if strings.Contains(rr.Stdout.String(), fmt.Sprintf("%s-%s", profile, name) {
t.Errorf("docker volume was not properly deleted: %s", rr.Stdout.String())
}
}
}