未验证 提交 f994b702 编写于 作者: M Medya Ghazizadeh 提交者: GitHub

Merge pull request #8529 from medyagh/cache_test_remove

integration: add delete  to cache test
......@@ -547,6 +547,15 @@ 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
t.Run("delete", func(t *testing.T) {
for _, img := range []string{"busybox:latest", "k8s.gcr.io/pause:latest"} {
rr, err := Run(t, exec.CommandContext(ctx, Target(), "cache", "delete", img))
if err != nil {
t.Errorf("failed to delete %s from cache. args %q: %v", img, rr.Command(), err)
}
}
})
})
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册