Merge branch 'node-delete-vol' of github.com:sharifelgamal/minikube into restart

pull/7973/head
Sharif Elgamal 2020-05-20 15:30:56 -07:00
commit db186ee7f9
1 changed files with 11 additions and 0 deletions

View File

@ -20,6 +20,7 @@ package integration
import (
"context"
"fmt"
"os/exec"
"strings"
"testing"
@ -192,4 +193,14 @@ 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 err != nil {
t.Errorf("failed to run %q : %v", rr.Command(), err)
}
if strings.Contains(rr.Stdout.String(), fmt.Sprintf("%s-%s", profile, name)) {
t.Errorf("docker volume was not properly deleted: %s", rr.Stdout.String())
}
}
}