@@ -173,6 +173,7 @@ os::log::info "Ruby's testing blob digest: ${rubyimageblob}"
173
173
# verify remote images can be pulled directly from the local registry
174
174
os::log::info " Docker pullthrough"
175
175
os::cmd::expect_success " oc import-image --confirm --from=mysql:latest mysql:pullthrough"
176
+ os::cmd::try_until_success ' oc get imagestreamtags mysql:pullthrough' $(( 2 * TIME_MIN))
176
177
os::cmd::expect_success " docker pull ${DOCKER_REGISTRY} /cache/mysql:pullthrough"
177
178
mysqlblob=" $( oc get istag -o go-template=' {{range .image.dockerImageLayers}}{{if gt .size 4096.}}{{.name}},{{end}}{{end}}' " mysql:pullthrough" | cut -d , -f 1) "
178
179
# directly hit the image to trigger mirroring in case the layer already exists on disk
@@ -213,6 +214,7 @@ os::cmd::expect_failure_and_text "docker run -e OPENSHIFT_DEFAULT_REGISTRY=local
213
214
214
215
os::log::info " Docker pull from istag"
215
216
os::cmd::expect_success " oc import-image --confirm --from=hello-world:latest -n test hello-world:pullthrough"
217
+ os::cmd::try_until_success ' oc get imagestreamtags hello-world:pullthrough -n test' $(( 2 * TIME_MIN))
216
218
os::cmd::expect_success " docker pull ${DOCKER_REGISTRY} /test/hello-world:pullthrough"
217
219
os::cmd::expect_success " docker tag ${DOCKER_REGISTRY} /test/hello-world:pullthrough ${DOCKER_REGISTRY} /cache/hello-world:latest"
218
220
os::cmd::expect_success " docker push ${DOCKER_REGISTRY} /cache/hello-world:latest"
@@ -275,6 +277,7 @@ os::test::junit::declare_suite_end
275
277
276
278
os::log::info " Fetch manifest V2 schema 2 image with old client using pullthrough"
277
279
os::cmd::expect_success " oc import-image --confirm --from=hello-world:latest hello-world:pullthrough"
280
+ os::cmd::try_until_success ' oc get imagestreamtags hello-world:pullthrough' $(( 2 * TIME_MIN))
278
281
os::cmd::expect_success_and_text " oc get -o jsonpath='{.image.dockerImageManifestMediaType}' istag hello-world:pullthrough" ' application/vnd\.docker\.distribution\.manifest\.v2\+json'
279
282
hello_world_name=" $( oc get -o ' jsonpath={.image.metadata.name}' istag hello-world:pullthrough) "
280
283
os::cmd::expect_success_and_text " echo '${hello_world_name} '" ' .+'
0 commit comments