We had similar code to check if image exists or not. Add checkImageNotExists() helper and refactor listImages() helper to make it easier to use. listImages() fails the test so the caller do no not need to check for errors. It returns list of images so the caller does not have to parse the output. When parsing the output of `minikube image ls` use scanner to split the output to lines. Previously we search images in rr.Output() (formatted message with contents of stdout and stderr) instead of rr.Stdout.String(), which could lead to returning a wrong result. |
||
|---|---|---|
| .. | ||
| integration | ||
| stress | ||