Pre-pull images in node e2e-tests. Possible resolution for #24905

This commit is contained in:
Phillip Wittrock
2016-05-20 03:04:58 +00:00
parent 505fb85726
commit 839f4f8dd2
9 changed files with 121 additions and 58 deletions

View File

@@ -32,7 +32,7 @@ import (
)
const (
consistentCheckTimeout = time.Second * 20
consistentCheckTimeout = time.Second * 10
retryTimeout = time.Minute * 5
pollInterval = time.Second * 5
)
@@ -66,7 +66,7 @@ var _ = Describe("Container runtime Conformance Test", func() {
Context("when start a container that exits successfully", func() {
It("it should run with the expected status [Conformance]", func() {
testContainer := api.Container{
Image: "gcr.io/google_containers/busybox",
Image: ImageRegistry[busyBoxImage],
VolumeMounts: []api.VolumeMount{
{
MountPath: "/restart-count",
@@ -145,7 +145,7 @@ var _ = Describe("Container runtime Conformance Test", func() {
Context("when start a container that keeps running", func() {
It("it should run with the expected status [Conformance]", func() {
testContainer := api.Container{
Image: "gcr.io/google_containers/busybox",
Image: ImageRegistry[busyBoxImage],
Command: []string{"sh", "-c", "while true; do echo hello; sleep 1; done"},
ImagePullPolicy: api.PullIfNotPresent,
}
@@ -203,7 +203,7 @@ var _ = Describe("Container runtime Conformance Test", func() {
Context("when start a container that exits failure", func() {
It("it should run with the expected status [Conformance]", func() {
testContainer := api.Container{
Image: "gcr.io/google_containers/busybox",
Image: ImageRegistry[busyBoxImage],
Command: []string{"false"},
ImagePullPolicy: api.PullIfNotPresent,
}