Skip to content

Commit 58c8bc6

Browse files
committed
Cache busybox in integration test
1 parent fbcab50 commit 58c8bc6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/integration/functional_test.go

100644100755
+9-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import (
2222
"strings"
2323
"testing"
2424

25+
"k8s.io/minikube/pkg/minikube/constants"
26+
"k8s.io/minikube/pkg/minikube/machine"
2527
"k8s.io/minikube/test/integration/util"
2628
)
2729

@@ -31,7 +33,13 @@ func TestFunctional(t *testing.T) {
3133
Args: *args,
3234
T: t}
3335
minikubeRunner.EnsureRunning()
34-
36+
integrationTestImages := []string{"busybox:glibc"}
37+
if err := machine.CacheImages(integrationTestImages, constants.ImageCacheDir); err != nil {
38+
t.Fatalf("caching images: %s", err)
39+
}
40+
if err := machine.LoadFromCacheBlocking(&minikubeRunner, constants.ImageCacheDir); err != nil {
41+
t.Fatalf("loading images: %s", err)
42+
}
3543
// This one is not parallel, and ensures the cluster comes up
3644
// before we run any other tests.
3745
t.Run("Status", testClusterStatus)

0 commit comments

Comments
 (0)