提交 3dfb0ae9 编写于 作者: P Priya Wadhwa

check if preloaded tarball was downloaded if preload exists

上级 2a38c739
......@@ -51,7 +51,8 @@ func TestDownloadOnly(t *testing.T) {
t.Run("group", func(t *testing.T) {
versions := []string{
constants.OldestKubernetesVersion,
"v1.12.0",
constants.DefaultKubernetesVersion,
constants.NewestKubernetesVersion,
}
for _, v := range versions {
t.Run(v, func(t *testing.T) {
......@@ -70,6 +71,14 @@ func TestDownloadOnly(t *testing.T) {
t.Errorf("%s failed: %v", args, err)
}
if download.PreloadExists(v, "docker") {
// Just make sure the tarball path exists
if _, err := os.Stat(download.TarballPath(v)); err != nil {
t.Errorf("preloaded tarball path doesn't exist: %v", err)
}
return
}
imgs, err := images.Kubeadm("", v)
if err != nil {
t.Errorf("kubeadm images: %v %+v", v, err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册