Cache busybox in integration test
parent
6ac177fd7a
commit
eb73bad9c5
|
@ -22,6 +22,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"k8s.io/minikube/pkg/minikube/constants"
|
||||||
|
"k8s.io/minikube/pkg/minikube/machine"
|
||||||
"k8s.io/minikube/test/integration/util"
|
"k8s.io/minikube/test/integration/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -31,7 +33,13 @@ func TestFunctional(t *testing.T) {
|
||||||
Args: *args,
|
Args: *args,
|
||||||
T: t}
|
T: t}
|
||||||
minikubeRunner.EnsureRunning()
|
minikubeRunner.EnsureRunning()
|
||||||
|
integrationTestImages := []string{"busybox:glibc"}
|
||||||
|
if err := machine.CacheImages(integrationTestImages, constants.ImageCacheDir); err != nil {
|
||||||
|
t.Fatalf("caching images: %s", err)
|
||||||
|
}
|
||||||
|
if err := machine.LoadFromCacheBlocking(&minikubeRunner, constants.ImageCacheDir); err != nil {
|
||||||
|
t.Fatalf("loading images: %s", err)
|
||||||
|
}
|
||||||
// This one is not parallel, and ensures the cluster comes up
|
// This one is not parallel, and ensures the cluster comes up
|
||||||
// before we run any other tests.
|
// before we run any other tests.
|
||||||
t.Run("Status", testClusterStatus)
|
t.Run("Status", testClusterStatus)
|
||||||
|
|
Loading…
Reference in New Issue