check all components

pull/11843/head
Medya Gh 2021-07-01 15:19:24 -04:00
parent f51a5c1542
commit 4b17f546fb
1 changed files with 5 additions and 2 deletions

View File

@ -1908,8 +1908,11 @@ func validateVersionCmd(ctx context.Context, t *testing.T, profile string) {
t.Errorf("error version: %v", err)
}
got := rr.Stdout.String()
if !strings.Contains(got, "containerd") {
t.Error("expected to see containerd in the minikube version --packages")
for _, c := range []string{"buildctl", "commit", "containerd", "crictl", "crio", "ctr", "docker", "minikubeVersion", "podman", "run"} {
if !strings.Contains(got, c) {
t.Errorf("expected to see %q in the minikube version --components but got:\n%s", c, got)
}
}
})