You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 16, 2024. It is now read-only.
// Test an auto-upgrade pattern that matches no local images, and make sure the proper error is returned
330
+
_, err=c.ImageDetails(ctx, "dne:v#.#.#", nil)
331
+
iferr==nil {
332
+
t.Fatal("expected error for auto-upgrade pattern that matches no local images")
333
+
}
334
+
assert.ErrorContains(t, err, "unable to find an image for dne:v#.#.# matching pattern v#.#.# - if you are trying to use a remote image, specify the full registry")
returnnil, fmt.Errorf("unable to find an image for %v matching pattern %v - if you are trying to use a remote image, specify the full registry", imageName, tagPattern)
33
+
}
34
+
27
35
returnnil, fmt.Errorf("unable to find an image for %v matching pattern %v", imageName, tagPattern)
0 commit comments