TestFunctional: keep "pause:latest" as a test case
parent
e98ee9698a
commit
daf6cd9229
|
@ -637,7 +637,7 @@ func validateCacheCmd(ctx context.Context, t *testing.T, profile string) {
|
||||||
|
|
||||||
t.Run("cache", func(t *testing.T) {
|
t.Run("cache", func(t *testing.T) {
|
||||||
t.Run("add_remote", func(t *testing.T) {
|
t.Run("add_remote", func(t *testing.T) {
|
||||||
for _, img := range []string{"k8s.gcr.io/pause:3.1", "k8s.gcr.io/pause:3.3", "k8s.gcr.io/pause:3.4.1"} {
|
for _, img := range []string{"k8s.gcr.io/pause:3.1", "k8s.gcr.io/pause:3.3", "k8s.gcr.io/pause:latest"} {
|
||||||
rr, err := Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "cache", "add", img))
|
rr, err := Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "cache", "add", img))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("failed to 'cache add' remote image %q. args %q err %v", img, rr.Command(), err)
|
t.Errorf("failed to 'cache add' remote image %q. args %q err %v", img, rr.Command(), err)
|
||||||
|
@ -710,7 +710,7 @@ func validateCacheCmd(ctx context.Context, t *testing.T, profile string) {
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("cache_reload", func(t *testing.T) { // deleting image inside minikube node manually and expecting reload to bring it back
|
t.Run("cache_reload", func(t *testing.T) { // deleting image inside minikube node manually and expecting reload to bring it back
|
||||||
img := "k8s.gcr.io/pause:3.4.1"
|
img := "k8s.gcr.io/pause:latest"
|
||||||
// deleting image inside minikube node manually
|
// deleting image inside minikube node manually
|
||||||
|
|
||||||
var binary string
|
var binary string
|
||||||
|
@ -745,7 +745,7 @@ func validateCacheCmd(ctx context.Context, t *testing.T, profile string) {
|
||||||
|
|
||||||
// delete will clean up the cached images since they are global and all other tests will load it for no reason
|
// delete will clean up the cached images since they are global and all other tests will load it for no reason
|
||||||
t.Run("delete", func(t *testing.T) {
|
t.Run("delete", func(t *testing.T) {
|
||||||
for _, img := range []string{"k8s.gcr.io/pause:3.1", "k8s.gcr.io/pause:3.4.1"} {
|
for _, img := range []string{"k8s.gcr.io/pause:3.1", "k8s.gcr.io/pause:latest"} {
|
||||||
rr, err := Run(t, exec.CommandContext(ctx, Target(), "cache", "delete", img))
|
rr, err := Run(t, exec.CommandContext(ctx, Target(), "cache", "delete", img))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("failed to delete %s from cache. args %q: %v", img, rr.Command(), err)
|
t.Errorf("failed to delete %s from cache. args %q: %v", img, rr.Command(), err)
|
||||||
|
|
Loading…
Reference in New Issue